Ejemplo n.º 1
0
        public static dynamic UpdateStatus(Ablums dto)
        {
            DataTable tabl = ConnectDb.ExecuteDataTableTask(Startup.ConnectionString, "SP_Ablums",
                                                            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());
        }
Ejemplo n.º 2
0
        public static dynamic SaveItem(Ablums dto)
        {
            DataTable tabl = ConnectDb.ExecuteDataTableTask(Startup.ConnectionString, "SP_Ablums",
                                                            new string[] { "@flag", "@Id", "@CatId", "@Title", "@Description", "@Images", "@Status", "@CreatedBy", "@ModifiedBy" },
                                                            new object[] { "SaveItem", dto.Id, dto.CatId, dto.Title, dto.Description, dto.Images, dto.Status, dto.CreatedBy, dto.ModifiedBy, });

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