예제 #1
0
        public async Task <IHttpActionResult> AddDepartment(int clientId, [FromBody] DepartmentModel model)
        {
            var userId     = GetUserId();
            var department = await _departmentManager.AddAsync(model, clientId, userId);

            return(Ok(department));
        }
예제 #2
0
 public async Task <IActionResult> AddAsync(DepartmentAddModel department)
 {
     return(Ok(
                ServiceResponseHelper
                .GetSuccessResponse(
                    await
                    _manager
                    .AddAsync(department)
                    )
                ));
 }