Esempio n. 1
0
 //Facade
 public void ModificarIndicadoresBioquimicos(string trigliceridos, string hemoglobina, string colesterol, string glucosa, string creatinina, string nitUreico, int id)
 {
     if (trigliceridos != "" && hemoglobina != "" && colesterol != "" && glucosa != "" && creatinina != "" && nitUreico != "")
     {
         if (Convert.ToInt32(trigliceridos) != 0 && Convert.ToInt32(hemoglobina) != 0 && Convert.ToInt32(colesterol) != 0 && Convert.ToInt32(glucosa) != 0 && Convert.ToInt32(creatinina) != 0 && Convert.ToInt32(nitUreico) != 0)
         {
             try
             {
                 var modeloGenerales2 = new ModeloGenerales2();
                 modeloGenerales2.ModificarIndicadoresBioquimicos(trigliceridos, hemoglobina, colesterol, glucosa, creatinina, nitUreico, id);
             }
             catch (Exception ex)
             {
                 throw new Exception(ex.Message);
             }
         }
         else
         {
             error = "Los valores deben ser mayores a 0";
             return;
         }
     }
     else
     {
         error = "Los campos no deben estar vacios";
         return;
     }
 }