private ActionResult SaveClient(ClientModel model) { if (ModelState.IsValid) { try { var entity = ClientModel.ConvertFromModel(model); _clientRepository.Save(entity); _clientRepository.SaveChanges(); return(RedirectToAction("Index")); } catch (Exception e) { Logger.Error(e); ModelState.AddModelError(string.Empty, "Error saving."); } } InitializeListFilter(); return(View("Edit", model)); }