public async Task <ActionResult> AddOrUpdate(TemplateEntityViewModel templateEntity) { if (ModelState.IsValid) { await _templateService.AddOrUpdateAsync(templateEntity); return(RedirectToAction("Index")); } templateEntity.CountriesDdl = await _templateService.GetCountriesDropdownAsync(); return(View(templateEntity)); }