public void Save(TemplateModel model)
 {
     string json = DataSerializer.Serialize(model);
     if (!File.Exists(FilePath()))
     {
         File.Create(FilePath()).Close();
     }
     File.WriteAllText(FilePath(), json);
 }
 public IHttpActionResult Save(TemplateModel model)
 {
     if (ModelState.IsValid)
     {
         model.Blood_Pressure_Sitting = new BloodPressure(model.Blood_Pressure_Sitting_Manage);
         model.Blood_Pressure_Standing = new BloodPressure(model.Blood_Pressure_Standing_Manage);
         dManager.Save(model);
         return Ok("Template have been saved");
     }
     return BadRequest(ModelState);
 }