Example #1
0
        public async Task <ActionResult <Employee> > DeleteEmployee(Guid id)
        {
            var employee = _applicationUserService.GetEmployee(id);

            if (employee == null)
            {
                return(NotFound());
            }

            employee = _applicationUserService.DeleteEmployee(id);

            return(employee);
        }