Example #1
0
        public HttpResponseMessage Reject(EmailApprovalDetails emailApproveDetails)
        {
            HttpResponseMessage response = null;

            try
            {
                var result = approvalService.UpdateRejectStatus(emailApproveDetails);
                response = Request.CreateResponse(HttpStatusCode.OK, result);
            }
            catch (Exception ex)
            {
                LogMessage.Log("api/approval/Reject :" + ex.Message);
                response = Request.CreateResponse(HttpStatusCode.InternalServerError, "Rejection failed");
            }

            return(response);
        }