Пример #1
0
 //GET: api/estate/5
 public IHttpActionResult Get(int id)
 {
     try
     {
         return(Ok(_estateService.GetById(id)));
     }
     catch (Exception ec)
     {
         return(BadRequest(ec.Message));
     }
 }