/// <summary> /// Deprecated Method for adding a new object to the tbl_EventTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbl_EventTypes(tbl_EventTypes tbl_EventTypes) { base.AddObject("tbl_EventTypes", tbl_EventTypes); }
public ActionResult UpdateEventType(tbl_EventTypes model) { if (model.EventTypeID < 1) return Json(new { success = false }); tbl_EventTypes eventType = ECommerceService.SaveEventType(model.ET_Title, model.ET_Description, model.EventTypeID); return Json((eventType != null) ? new { success = true, eventTypeID = eventType.EventTypeID } : new { success = false, eventTypeID = 0 } ); }
/// <summary> /// Create a new tbl_EventTypes object. /// </summary> /// <param name="eventTypeID">Initial value of the EventTypeID property.</param> /// <param name="eT_Title">Initial value of the ET_Title property.</param> public static tbl_EventTypes Createtbl_EventTypes(global::System.Int32 eventTypeID, global::System.String eT_Title) { tbl_EventTypes tbl_EventTypes = new tbl_EventTypes(); tbl_EventTypes.EventTypeID = eventTypeID; tbl_EventTypes.ET_Title = eT_Title; return tbl_EventTypes; }