Beispiel #1
0
 public ActionResult <Crust> Get(int id)
 {
     try
     {
         return(Ok(repo.GetSizeById(id)));
     }
     catch (Exception ex)
     {
         return(NotFound($"The size Id - {id} does not exist" + ex.Message));
     }
 }
Beispiel #2
0
 public SizeViewModel GetSizeById(int sizeId)
 {
     return(_sizeRepository.GetSizeById(sizeId).ToViewModel());
 }
 public Size GetSizeById(int sizeId)
 {
     return(_sizeRepository.GetSizeById(sizeId));
 }