Пример #1
0
        public async Task <IHttpActionResult> DeleteDepartment(DeleteDepartmentDto input)
        {
            //TODO: validate
            var result = await _departmentServices.DeleteAsync(input.Id);

            return(Ok(result));
        }
Пример #2
0
 public async Task <ActionResult> Delete(string code)
 {
     return(Ok(await _DepartmentServices.DeleteAsync(code)));
 }