示例#1
0
        public IQueryable <SALES> GetByid(int id)
        {
            SALESRepository rep  = new SALESRepository(connectionString);
            List <SALES>    list = rep.GetDataByid(id);

            return(list.AsQueryable());
        }
示例#2
0
        public void Delete(SALES sales)
        {
            SALESRepository rep = new SALESRepository(connectionString);

            rep.Remove(sales);
        }
示例#3
0
        public void Put(SALES sales)
        {
            SALESRepository rep = new SALESRepository(connectionString);

            rep.Update(sales);
        }
示例#4
0
        public void Post(SALES sales)
        {
            SALESRepository rep = new SALESRepository(connectionString);

            rep.Add(sales);
        }