public List<string> Compute(ObjectModelDto model)
 {
     var objList = new List<object>();
     foreach (var item in model.Nums)
     {
         objList.Add(item as object);
     }
     return FlexOffersService.Compute(objList, model.Lowest, model.Highest);
 }
 public int Post(ObjectModelDto model)
 {
     using (var db = new ApplicationDbContext()) {
         var flexOffersModel = new FlexOffersModel
         {
             Lower = model.Lowest,
             Higher = model.Highest
         };
         db.FlexOffersModel.Add(flexOffersModel);
         foreach (var num in model.Nums)
         {
             db.ObjectModels.Add(new ObjectModel
             {
                 Item = num,
                 FlexOffersModelId = flexOffersModel.Id
             });
         }
         db.SaveChanges();
         return flexOffersModel.Id;
     }
 }