public ActionResult <Side> Get(int id) { Side result = _sideRepo.GetSideById(id); if (result != null) { return(Ok(result)); } return(NotFound()); }
internal Side GetSideById(int sideId) { Side side = _repo.GetSideById(sideId); if (side != null) { return(side); } throw new Exception("invalid Id"); }
public ActionResult <Side> Get(int id) { Side side = _sideRepo.GetSideById(id); if (side != null) { return(Ok(side)); } else { return(NotFound()); } }