public async Task <IActionResult> DeleteAsync(int id)
        {
            var result = await
                         _manager
                         .DeleteAsync(id);

            return(Ok(result
                ? ServiceResponseHelper.GetSuccessResponse(result)
                : ServiceResponseHelper.GetFailureResponse <bool>()));
        }
        public async Task <IActionResult> UpdateAsync(DepartmentUpdateModel department)
        {
            var result = await
                         _manager
                         .UpdateAsync(department);

            return(Ok(result
                ? ServiceResponseHelper.GetSuccessResponse(result)
                : ServiceResponseHelper.GetFailureResponse <bool>()));
        }
 public async Task <IActionResult> AddAsync(DepartmentAddModel department)
 {
     return(Ok(
                ServiceResponseHelper
                .GetSuccessResponse(
                    await
                    _manager
                    .AddAsync(department)
                    )
                ));
 }
 public async Task <IActionResult> GetAsync(int id)
 {
     return(Ok(
                ServiceResponseHelper
                .GetSuccessResponse(
                    await
                    _manager
                    .GetAsync(id)
                    )
                ));
 }