public HttpResponseMessage Put(AboutPageUpdateRequest model)
        {
            try
            {
                _aboutPageService.Update(model);
                return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse()));
            }

            catch (Exception ex)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex.Message));
            }
        }
Exemplo n.º 2
0
 public IActionResult UpdateAboutPage([FromBody] AboutPage entity)
 {
     _aboutPageService.Update(entity);
     _logger.LogInformation(" Update : Aboutpage ");
     return(Ok());
 }