Пример #1
0
 public ActionResult GetApplicantEducation(Guid productId)
 {
     try
     {
         var poco = _logic.Get(productId);
         return(poco != null?Ok(poco) : (ActionResult)NotFound());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Пример #2
0
        public ActionResult GetProduct(Guid id)
        {
            ProductPoco poco = _logic.Get(id);

            if (poco == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(poco));
            }
        }