public static void EditOptionSetEntity(OptionSetEntity OptionSetEntity)
 {
     BackOffice.Models.ODataClient.Default.Container container = new BackOffice.Models.ODataClient.Default.Container(new Uri(Serviceurl));
       container.AttachTo("OptionSetEntities",OptionSetEntity);
       container.UpdateObject(OptionSetEntity);
       var serviceResponse = container.SaveChanges();
 }
 public async Task<ActionResult> Edit(int id, OptionSetEntity oEntity)
 {
     try
     {
         // TODO: Add update logic here
         ViewBag.AllTables =await CreateAllTables(oEntity.DbName);
         OptionSetEntityRepository.EditOptionSetEntity(oEntity);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
 public static void AddOptionSetEntity( OptionSetEntity OptionSetEntity)
 {
     BackOffice.Models.ODataClient.Default.Container container = new BackOffice.Models.ODataClient.Default.Container(new Uri(Serviceurl));
     container.AddToOptionSetEntities(OptionSetEntity);
     var serviceResponse = container.SaveChanges();
 }
 public ActionResult Delete(int id, OptionSetEntity oEntity)
 {
     try
     {
         // TODO: Add delete logic here
         OptionSetEntityRepository.DeleteOptionSetEntity(oEntity);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }