public ActionResult AddCourse(string Code, string Name) { int numOfRows = db.AddCourse(Code, Name, LoginInfo.LoginUsername); if (numOfRows == 0) { return(View("~/Views/SR/CAFail.cshtml")); } return(View("~/Views/SR/CASuccess.cshtml")); }