public JsonResult Insert(CountryViewModel cViewModel) { try { Set_Date_Session(cViewModel.Country); cViewModel.Country.CountryId = _cRepo.Insert(cViewModel.Country); cViewModel.FriendlyMessage.Add(MessageStore.Get("COUNTRY01")); Logger.Debug("Country Controller Insert"); } catch (Exception ex) { cViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01")); Logger.Error("Country Controller - Insert " + ex.Message); } return(Json(cViewModel)); }
public int Insert_Country(CountryInfo _countryInfo) { return(_countryRepo.Insert(_countryInfo)); }