Esempio n. 1
0
        public ActionResult CreateContactAccount(ContactAccount contactAccount)
        {
            contactAccount.Validate(ModelState, User);

            if (ModelState.IsValid)
            {
                if (contactAccount.CreateContactAccount())
                {
                    string description = ChangeLog.ContactAccount(contactAccount, db);

                    ViewBag.Description = description;

                    return(View("Success"));
                }

                ModelState.AddModelError("EmailAddress", "Failed to Create Contact Account");
            }

            return(View(contactAccount));
        }