Beispiel #1
0
        public ActionResult Create(StaffViewModel staffViewModel, HttpPostedFileBase image)
        {
            if (ModelState.IsValid)
            {
                _staff.AddNewStaffprofile(staffViewModel, image);

                return(RedirectToAction("Index"));
            }

            return(View(staffViewModel));
        }