示例#1
0
 public int ObtenerCalorias(int id)
 {
     try
     {
         var modeloPlan = new ModeloPlan();
         return(modeloPlan.ObtenerCalorias(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
 public string ObtenerAlimento(int id)
 {
     try
     {
         var modeloPlan = new ModeloPlan();
         return(modeloPlan.ObtenerAlimento(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#3
0
 public int ObtenerIdComida(string str)
 {
     try
     {
         var modeloPlan = new ModeloPlan();
         return(modeloPlan.ObtenerIdComida(str));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#4
0
 public DataTable GetTable(int idComida)
 {
     try
     {
         var modeloPlan = new ModeloPlan();
         return(modeloPlan.GetTable(idComida));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#5
0
 public List <string> ObtenerComidas()
 {
     try
     {
         var modeloPlan = new ModeloPlan();
         return(modeloPlan.ObtenerComidas());
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }