public Cellect Delete(int id) { Cellect cellect = _context.Cellects.FirstOrDefault(n => n.Id == id); if (cellect != null) { _context.Cellects.Remove(cellect); } _context.SaveChanges(); return(cellect); }
public void Addcellect(Cellect cellect) { _context.Cellects.Add(cellect); _context.SaveChanges(); }