//get user by ID

        public Variation GetVariationById(int id)
        {
            Variation variation = _db.Variations.FirstOrDefault(s => s.VariationId == id);

            return(variation);
        }
 //Update
 public string Update(Variation objVariation)
 {
     _db.Variations.Update(objVariation);
     _db.SaveChanges();
     return("Update successfully");
 }
        //Insert

        public string Create(Variation objVariation)
        {
            _db.Variations.Add(objVariation);
            _db.SaveChanges();
            return("save successfully");
        }