public JsonResult Edit(CalculateSpecificationPosition model)
 {
     var isComplete = false;
     try
     {
         var db = new DbEngine();
         isComplete = db.UpdateCalculateSpecificationPosition(model);
     }
     catch (Exception)
     {
         isComplete = false;
     }
     return Json(new { IsComplete = isComplete });
 }
 public JsonResult Save(CalculateSpecificationPosition model)
 {
     var isComplete = false;
     var id = -1;
     try
     {
         var db = new DbEngine();
         isComplete = db.SaveCalculateSpecificationPosition(model);
         id = model.Id;
     }
     catch (Exception)
     {
         isComplete = false;
     }
     return Json(new {IsComplete = isComplete, Id = id});
 }