public ActionResult <Side> GetSideById(int sideId)
 {
     try
     {
         return(Ok(_ss.GetSideById(sideId)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
Beispiel #2
0
        public IActionResult Details(int id)
        {
            var side = _context.GetSideById(id);

            return(View(side));
        }