public ActionResult OrgSignUp(string name, string email, string phone, string password, string oname, string oemail, string oaddress, string ocity, string ostate, string ozip, string ophone, int year, IEnumerable <int> category) { var mgr = new UserAuthRepository(); string onlyNumericNumber = Regex.Replace(phone, @"[^0-9]", ""); User u = mgr.AddUser(name, password, onlyNumericNumber, email); //SMSManager SMS = new SMSManager(); //string message = "Welcome to Expiration Reminder App! Thanks for setting up a new organization account with us and we look forward to working with you."; //SMS.Notification(u.PhoneNumber, message); Organization o = mgr.AddOrg(u.Id, oname, oaddress, oemail, ocity, ostate, ozip, ophone, year); mgr.CreateInitialUserOrdRel(o.Id, u.Id); foreach (int i in category) { mgr.CreateOrgReqItems(o.Id, i); } FormsAuthentication.SetAuthCookie(u.Id.ToString(), true); return(RedirectToAction("index", "portal")); }