internal Side Get(int id)
        {
            Side burger = _repo.GetById(id);

            if (burger == null)
            {
                throw new Exception("invalid Id");
            }
            return(burger);
        }
Ejemplo n.º 2
0
        internal Side Get(int id)
        {
            Side found = _repo.GetById(id);

            if (found == null)
            {
                throw new Exception("Invalid Side Id");
            }
            return(found);
        }
Ejemplo n.º 3
0
 public ActionResult <Side> Get(int id)
 {
     try
     {
         return(Ok(_repo.GetById(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }