public ComandaMancare Delete(ComandaMancare comandaMancare)
        {
            var result = _context.Remove(comandaMancare);

            _context.SaveChanges();
            return(result.Entity);
        }
        public ComandaMancare Create(ComandaMancare comandaMancare)
        {
            var result = _context.Add <ComandaMancare>(comandaMancare);

            _context.SaveChanges();
            return(result.Entity);
        }
 public ComandaMancare Update(ComandaMancare comandaMancare)
 {
     _context.Entry(comandaMancare).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     _context.SaveChanges();
     return(comandaMancare);
 }