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)); } }
public SizeViewModel GetSizeById(int sizeId) { return(_sizeRepository.GetSizeById(sizeId).ToViewModel()); }
public Size GetSizeById(int sizeId) { return(_sizeRepository.GetSizeById(sizeId)); }