public void Update(GlobalEventUpdateRequest model) { DataProvider.ExecuteNonQuery(GetConnection, "dbo.GlobalEvent_Update" , inputParamMapper : delegate(SqlParameterCollection paramCollection) { paramCollection.AddWithValue("@id", model.Id); MapCommonParameters(model, paramCollection); } ); return; }
public HttpResponseMessage Update(GlobalEventUpdateRequest model) { if (!ModelState.IsValid) { return(Request.CreateResponse(HttpStatusCode.BadRequest, ModelState)); } _globalEventService.Update(model); _notificationService.GlobalEvent(model.Id, Enums.EventActionType.Modified); SuccessResponse response = new SuccessResponse(); return(Request.CreateResponse(HttpStatusCode.OK, response)); }