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)); } }
public ActionResult GetProduct(Guid id) { ProductPoco poco = _logic.Get(id); if (poco == null) { return(NotFound()); } else { return(Ok(poco)); } }