public ActionResult Create(TownViewModel town)
        {
            if (ModelState.IsValid)
            {
                if (_townService.Insert(town))
                {
                    return RedirectToAction("Index");
                }
            }

            return View(town);
        }
        public bool Insert(TownViewModel town)
        {
            Town domainTown = town.ConvertToDomain();

            try
            {
                _unitOfWork.TownRepository.Insert(domainTown);
                _unitOfWork.Save();
            }
            catch
            {
                return false;
            }

            return true;
        }
        public bool Update(TownViewModel townToUpdate)
        {
            Town domainTownToUpdate = townToUpdate.ConvertToDomain();

            try
            {
                _unitOfWork.TownRepository.Update(domainTownToUpdate);
                _unitOfWork.Save();
            }
            catch
            {
                return false;
            }

            return true;
        }