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)); } }
public IActionResult UpdateAboutPage([FromBody] AboutPage entity) { _aboutPageService.Update(entity); _logger.LogInformation(" Update : Aboutpage "); return(Ok()); }