public HttpResponseMessage MarkAnswer(int serialno, int utestID, string answer) { try { if (bllService.MarkAnswer(serialno, utestID, answer)) { return(Request.CreateResponse(HttpStatusCode.OK)); } else { return(Request.CreateResponse(HttpStatusCode.NotFound, "Error marking answer.")); } } catch (Exception e) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, e)); } }