27 lines
792 B
C#
27 lines
792 B
C#
using CandyHouseContracts.DataModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CandyHouseContracts.StoragesContracts;
|
|
|
|
public interface IEmployeeStorageContract
|
|
{
|
|
List<EmployeeDataModel> 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);
|
|
}
|