コード例 #1
0
ファイル: CmsEventAction.cs プロジェクト: ngotrog1507/HiE
 public int Update(CmsEvent model)
 {
     return((int)SqlHelper.ExecuteScalar(SqlConnection, CommonHelper.Config.GetFullyQualifiedName("CmsEvent_Update")
                                         , model.Id, CommonHelper.Null.GetNull(model.Image), model.TypeId, CommonHelper.Null.GetNull(model.Title), CommonHelper.Null.GetNull(model.Name)
                                         , CommonHelper.Null.GetNull(model.Summary), model.NumberView, model.Orders, model.UsedState,
                                         model.CreatedBy, model.CreatedDate,
                                         CommonHelper.Null.GetNull(model.ModifiedDate), CommonHelper.Null.GetNull(model.ModifiedBy)));
 }
コード例 #2
0
ファイル: CmsEventAction.cs プロジェクト: ngotrog1507/HiE
        public int Insert(CmsEvent model)
        {
            var deciResult = SqlHelper.ExecuteScalar(SqlConnection, CommonHelper.Config.GetFullyQualifiedName("CmsEvent_Insert")
                                                     , CommonHelper.Null.GetNull(model.Image), model.TypeId, CommonHelper.Null.GetNull(model.Title), CommonHelper.Null.GetNull(model.Name)
                                                     , CommonHelper.Null.GetNull(model.Summary), model.NumberView, model.Orders, model.UsedState,
                                                     model.CreatedBy, model.CreatedDate,
                                                     CommonHelper.Null.GetNull(model.ModifiedDate), CommonHelper.Null.GetNull(model.ModifiedBy));

            return(CommonHelper.Convert.ConvertToInt32(deciResult));
        }