コード例 #1
0
ファイル: CMSModel.Designer.cs プロジェクト: nhtera/CrowdCMS
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_EventTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_EventTypes(tbl_EventTypes tbl_EventTypes)
 {
     base.AddObject("tbl_EventTypes", tbl_EventTypes);
 }
コード例 #2
0
ファイル: AdmnController.cs プロジェクト: nhtera/CrowdCMS
        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 }
               );
        }
コード例 #3
0
ファイル: CMSModel.Designer.cs プロジェクト: nhtera/CrowdCMS
 /// <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;
 }