public ActionResult addMousepad(cMousePad part, string image) { if (Convert.ToInt32(Session["UserType"]) != 1 && Convert.ToInt32(Session["UserType"]) != 3) { return(this.Redirect(@Url.Action("Index", "Home"))); } CRUDService.ServiceClient sr = new CRUDService.ServiceClient(); bool added = sr.addMousepad(part, 1, image); if (added) { return(this.Redirect(Url.Action("Complete", "AddNewProduct"))); } else { return(this.Redirect(Url.Action("Mousepad", "AddNewProduct"))); } }