Exemplo n.º 1
0
 public IActionResult GetHomeObject()
 {
     try
     {
         HomeModel homeModel = homeLogic.GetHomeObject();
         return(Ok(homeModel));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
     }
 }