public async Task <IHttpActionResult> GetDepartment(int clientId, int departmentId) { var userId = GetUserId(); var department = await _departmentManager.GetAsync(departmentId, clientId, userId); return(Ok(department)); }
public async Task <IActionResult> GetAsync(int id) { return(Ok( ServiceResponseHelper .GetSuccessResponse( await _manager .GetAsync(id) ) )); }