public JsonResult SaveMunicipalities(MunicipalitiesViewModel model)
        {
            var municipalitiesData = model.ConvertToMunicipalities();

            //splitting address and update it separately from municipalities
            if (model.Id != 0)
            {
                Address address = model.ConvertToMunicipalities().Address;
                _addressServices.SaveAddress(address);
            }

            _municipalitiesService.SaveMunicipality(municipalitiesData);

            return(Json(new { reload = true }));
        }