2023-06-12 10:26:01 +02:00
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// Assembly : Service.Contracts
|
|
|
|
|
// Author : frede
|
|
|
|
|
// Created : 2023 06 11 10:39
|
|
|
|
|
//
|
|
|
|
|
// Last Modified By : frede
|
|
|
|
|
// Last Modified On : 2023 06 11 10:39
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// <copyright file="IEmployeeService.cs" company="FCS">
|
|
|
|
|
// Copyright (C) 2023-2023 FCS Frede's Computer Services.
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Affero General Public License as
|
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
// along with this program. If not, see [https://www.gnu.org/licenses]
|
|
|
|
|
// </copyright>
|
|
|
|
|
// <summary></summary>
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
|
2023-12-11 14:05:07 +01:00
|
|
|
|
using Entities;
|
2023-06-12 10:26:01 +02:00
|
|
|
|
using Shared.DataTransferObjects;
|
|
|
|
|
|
|
|
|
|
namespace Service.Contracts;
|
|
|
|
|
|
|
|
|
|
public interface IEmployeeService
|
|
|
|
|
{
|
|
|
|
|
IEnumerable<EmployeeDto> GetEmployees(Guid companyId, bool trackChanges);
|
|
|
|
|
EmployeeDto GetEmployee(Guid companyId, Guid employeeId, bool trackChanges);
|
2023-12-11 14:05:07 +01:00
|
|
|
|
EmployeeDto CreateEmployeeForCompany(Guid companyId, EmployeeCreateDto? employeeCreateDto, bool trackChanges);
|
|
|
|
|
void DeleteEmployeeForCompany(Guid companyId, Guid employeeId, bool trackChanges);
|
|
|
|
|
|
|
|
|
|
void UpdateEmployeeForCompany(Guid companyId, Guid employeeId, EmployeeUpdateDto employeeUpdate,
|
|
|
|
|
bool companyTrackChanges, bool employeeTrackChanges);
|
|
|
|
|
|
|
|
|
|
(EmployeeUpdateDto employeeToPatch, Employee employeeEntity) GetEmployeeForPatch(Guid companyId, Guid employeeId, bool companyTrackChanges, bool employeeTrackChanges);
|
|
|
|
|
|
|
|
|
|
void SaveChangesForPatch(EmployeeUpdateDto employeeToPatch, Employee employeeEntity);
|
2023-06-12 10:26:01 +02:00
|
|
|
|
}
|