public Sac Get(int id) { List <Sac> _sac = new List <Sac>(); SacDal _sacDal = new SacDal(); _sac = _sacDal.retornaSac(); return(_sac.Where(x => x.Id == id).FirstOrDefault()); }
public IEnumerable <Sac> Get() { List <Sac> _sac = new List <Sac>(); SacDal _sacDal = new SacDal(); _sac = _sacDal.retornaSac(); return(_sac); }