Ejemplo n.º 1
0
 /// <summary>
 /// Now we add the recipe from here
 /// </summary>
 /// <param name="receta"></param>
 public void Add(Receta receta)
 {
     if (CategoriaService.ExisteCategoriaYNoNula(receta.categoria))
     {
         RecetaRepo.Add(receta);
     }
     else
     {
         throw new Exception("La categoria debe existir y no ser nula!!");
     }
 }