public async Task <IHttpActionResult> AddDepartment(int clientId, [FromBody] DepartmentModel model) { var userId = GetUserId(); var department = await _departmentManager.AddAsync(model, clientId, userId); return(Ok(department)); }
public async Task <IActionResult> AddAsync(DepartmentAddModel department) { return(Ok( ServiceResponseHelper .GetSuccessResponse( await _manager .AddAsync(department) ) )); }