public async Task <IActionResult> GetAllEmployees()
 {
     try
     {
         return(new OkObjectResult(await EmployeeLogic.GetAllEmployees()));
     } catch (Exception ex)
     {
         return(ExceptionsHelper.HandleException(ex));
     }
 }
 public async Task <IActionResult> UpdateEmployee(Guid id, [FromBody] UpdateEmployeeVm vm)
 {
     try
     {
         return(new OkObjectResult(await EmployeeLogic.UpdateEmployee(id, vm)));
     }
     catch (Exception ex)
     {
         return(ExceptionsHelper.HandleException(ex));
     }
 }
 public async Task <IActionResult> AddEmployee([FromBody] AddEmployeeVm vm)
 {
     try
     {
         return(new OkObjectResult(await EmployeeLogic.AddEmployee(vm)));
     }
     catch (Exception ex)
     {
         return(ExceptionsHelper.HandleException(ex));
     }
 }
 public async Task <IActionResult> GetEmployeeById(Guid id)
 {
     try
     {
         return(new OkObjectResult(await EmployeeLogic.FindEmployeeById(id)));
     }
     catch (Exception ex)
     {
         return(ExceptionsHelper.HandleException(ex));
     }
 }
        public async Task <IActionResult> RemoveEmployee(Guid id)
        {
            try
            {
                await EmployeeLogic.RemoveEmployee(id);

                return(new OkResult());
            }
            catch (Exception ex)
            {
                return(ExceptionsHelper.HandleException(ex));
            }
        }