Пример #1
0
        public static dynamic SaveItem(DocumentsField dto)
        {
            DataTable tabl = ConnectDb.ExecuteDataTableTask(Startup.ConnectionString, "SP_DocumentsField",
                                                            new string[] { "@flag", "@Id", "@Alias", "@Title", "@Description", "@Status", "@CreatedBy", "@ModifiedBy" },
                                                            new object[] { "SaveItem", dto.Id, dto.Alias, dto.Title, dto.Description, dto.Status, dto.CreatedBy, dto.ModifiedBy });

            return((from r in tabl.AsEnumerable()
                    select new
            {
                N = (int)(r["N"]),
            }).FirstOrDefault());
        }
Пример #2
0
        public static dynamic UpdateStatus(DocumentsField dto)
        {
            DataTable tabl = ConnectDb.ExecuteDataTableTask(Startup.ConnectionString, "SP_DocumentsField",
                                                            new string[] { "@flag", "@Id", "@Status", "@ModifiedBy" },
                                                            new object[] { "UpdateStatus", dto.Id, dto.Status, dto.ModifiedBy });

            return((from r in tabl.AsEnumerable()
                    select new
            {
                N = (int)(r["N"]),
            }).FirstOrDefault());
        }