public bool Create(Batchs bt)
 {
     if (bt != null)
     {
         _context.Batchs.Add(bt);
         _context.SaveChanges();
     }
     return(true);
 }
        // UPDATE  FUNCTION IN REPOS

        public bool Update(int id, Batchs ac)    //made by me
        {
            var cc = _context.Batchs.Find(id);

            if (cc != null)
            {
                cc.BatchName = ac.BatchName;
                _context.SaveChanges();
            }
            return(true);
        }