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