public ActionResult UpdatePaperStatus(string txtPaperId, string txtComments, string ApproveStatus) { IEditor _editor = new Editor(); Paper paper = new Paper(); ApproveStatus = ApproveStatus.Trim().Equals("-1") ? string.Empty : ApproveStatus.Trim(); _review.UpdatePaperStatus((int)UserId, int.Parse(txtPaperId), txtComments, ApproveStatus); paper = _editor.GetPaperDetails(int.Parse(txtPaperId)); ViewData["ApproveStatus"] = new SelectList( new List <SelectListItem> { new SelectListItem { Selected = true, Text = string.Empty, Value = "-1" }, new SelectListItem { Selected = false, Text = "Approved", Value = "Approved" }, new SelectListItem { Selected = false, Text = "Rejected", Value = "Rejected" }, }, "Value", "Text", 1); TempData["UpdateStatusResuslt"] = "Details updated successfully."; return(View("PaperDetails", paper)); }