public void Update(VirtualEventUpdateRequest model) { string procName = "[dbo].[VirtualEvents_Update]"; _data.ExecuteNonQuery(procName, inputParamMapper : delegate(SqlParameterCollection col) { VirtualEventParams(model, col); col.AddWithValue("@Id", model.Id); }, returnParameters: null); }
public ActionResult<ItemResponse<int>> Update(VirtualEventUpdateRequest model) { _service.Update(model); SuccessResponse response = new SuccessResponse(); return Ok(response); }