public async Task <Response <SliderImage> > AddSliderImage([FromBody] SliderImage sliderImage) { var httpResponse = new Response <SliderImage>(); try { httpResponse.RequestState = true; httpResponse.ErrorState = !await _appSettingsManager.AddSliderImage(sliderImage); } catch (Exception ex) { httpResponse.ErrorState = true; httpResponse.ErrorList.Add(ex.Adapt <ApiException>()); } return(httpResponse); }