예제 #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)));
 }