public IQueryable <SALES> GetByid(int id) { SALESRepository rep = new SALESRepository(connectionString); List <SALES> list = rep.GetDataByid(id); return(list.AsQueryable()); }
public void Delete(SALES sales) { SALESRepository rep = new SALESRepository(connectionString); rep.Remove(sales); }
public void Put(SALES sales) { SALESRepository rep = new SALESRepository(connectionString); rep.Update(sales); }
public void Post(SALES sales) { SALESRepository rep = new SALESRepository(connectionString); rep.Add(sales); }