Exemplo n.º 1
0
        public async Task <IActionResult> UpdateEmployee(EmployeeModel model)
        {
            var appUser = await getCurrentUser();

            var entity = model.ToEmployee();
            await _coreRep.UpdateEmployee(entity, appUser);

            return(Ok(new ResponseModel(new
            {
                result = true
            })));
        }