public HttpResponseMessage PostProject(Project project) { try { return new HttpResponseMessage(HttpStatusCode.Created); } catch (Exception ex) { return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex); } }
public HttpResponseMessage GetCalculateSampleSize(Project project) { try { throw new Exception("while calculating sample size"); } catch (Exception ex) { return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex); } }