public void Update(EventUpdateMultiStep model, int userId) { string procname = "[dbo].[Events_Update_V3]"; _data.ExecuteNonQuery(procname, inputParamMapper : delegate(SqlParameterCollection col) { DataTable dtEventFiles, dtVenueFiles; DataTableMapper(model, out dtEventFiles, out dtVenueFiles); EventParams(model, userId, col, dtEventFiles, dtVenueFiles); col.AddWithValue("@EventId", model.Id); }, returnParameters: null); }
public ActionResult <SuccessResponse> Update(EventUpdateMultiStep model) { int code = 200; BaseResponse response = null; try { int userId = _authService.GetCurrentUserId(); _service.Update(model, userId); response = new SuccessResponse(); } catch (Exception ex) { code = 500; response = new ErrorResponse($"Generic Errors: { ex.Message}"); base.Logger.LogError(ex.ToString()); } return(StatusCode(code, response)); }