public ActionResult Save(Employee employe)
        {
            if (!ModelState.IsValid)
            {
                return(View("Create"));
            }
            if (employe.Id == 0)
            {
                _context.Employees.Add(employe);
            }

            //else
            //{
            //    var update = _context.Employees.SingleOrDefault(c => c.Id == employe.Id);

            //    update.FirstName = employe.FirstName;
            //    update.LastName = employe.LastName;
            //    update.Email = employe.Email;
            //    update.PhoneNumber = employe.PhoneNumber;
            //    update.DateOfBirth = employe.DateOfBirth;
            //    update.Gender = employe.Gender;
            //    update.DrivingLicense = employe.DrivingLicense;
            //}
            employe.DateCreated = DateTime.Now;

            _context.SaveChanges();
            return(RedirectToAction("GetEmployees", "Employee"));
        }
        public ActionResult Save(ALS.Demo.Marketing.DataAccessLayer.Marketing marketer)
        {
            if (!ModelState.IsValid)
            {
                return(View("MarketingProfile"));
            }
            if (marketer.Id == 0)
            {
                _context1.Marketings.Add(marketer);
            }

            //else
            //{
            //    var update = _context.Employees.SingleOrDefault(c => c.Id == employe.Id);

            //    update.FirstName = employe.FirstName;
            //    update.LastName = employe.LastName;
            //    update.Email = employe.Email;
            //    update.PhoneNumber = employe.PhoneNumber;
            //    update.DateOfBirth = employe.DateOfBirth;
            //    update.Gender = employe.Gender;
            //    update.DrivingLicense = employe.DrivingLicense;
            //}

            _context1.SaveChanges();
            return(RedirectToAction("GetMarketingEmp", "Marketing"));
        }