Ejemplo n.º 1
0
        public ActionResult Add(CompanyPharmacyModel model)
        {
            ModelState.Remove("Password");
            if (ModelState.IsValid)
            {
                var newId = model.Add();
                if (model.UserRole == Role.Company)
                {
                    return(RedirectToAction("Company"));
                }
                else if (model.UserRole == Role.Pharmacy)
                {
                    return(RedirectToAction("Pharmacy"));
                }
            }

            return(View(model));
        }
Ejemplo n.º 2
0
 public CompanyPharmacyController()
 {
     _companyPharmacyModel = new CompanyPharmacyModel();
 }