using MagicCarpetContracts.DataModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MagicCarpetContracts.StoragesContracts; public interface IEmployeeStorageContract { List GetList(bool onlyActive = true, string? postId = null, DateTime? fromBirthDate = null, DateTime? toBirthDate = null, DateTime? fromEmploymentDate = null, DateTime? toEmploymentDate = null); EmployeeDataModel? GetElementById(string id); EmployeeDataModel? GetElementByFIO(string fio); EmployeeDataModel? GetElementByEmail(string email); void AddElement(EmployeeDataModel employeeDataModel); void UpdElement(EmployeeDataModel employeeDataModel); void DelElement(string id); int GetEmployeeTrend(DateTime fromPeriod, DateTime toPeriod); }