public void Create(ProfessionInformationViewModel professionInformationVM)
        {
            var ProfessionInformation = new ProfessionInformation
            {
                ProfessionName = professionInformationVM.ProfessionName
            };

            unitOfWork.ProfessionInformationRepository.Insert(ProfessionInformation);
            unitOfWork.Save();
        }
        // GET: ProfessionInformation/Details/5
        public ActionResult Details(int id = 0)
        {
            if (id == 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            ProfessionInformationViewModel details = professionInformationService.GetById(id);

            if (details == null)
            {
                return(HttpNotFound());
            }
            return(View(details));
        }
        public ActionResult Edit(ProfessionInformationViewModel professionInformationVM)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    // TODO: Add update logic here

                    professionInformationService.Update(professionInformationVM);
                    return(RedirectToAction("Index"));
                }
                catch
                {
                    return(View());
                }
            }
            return(View());
        }
        public ActionResult Create(ProfessionInformationViewModel professionInformationVM)
        {
            try
            {
                // TODO: Add insert logic here
                if (ModelState.IsValid)
                {
                    professionInformationService.Create(professionInformationVM);
                }


                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }