Exemple #1
0
        public ActionResult UpdateMasterPriceInfo(MasterPriceInfo model)
        {
            _ICountry.Admin_MasterPriceInfoUpdate(userEntity.MasterCountryId, model);
            Response.Redirect("ManageMasterPriceInfo");

            return(View(model));
        }
Exemple #2
0
 public void Admin_MasterPriceInfoUpdate(int countryId, MasterPriceInfo dto)
 {
     try
     {
         _dataAccessCountry.Admin_MasterPriceInfoUpdate(countryId, dto);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemple #3
0
 public void Admin_MasterPriceInfoUpdate(int countryId, MasterPriceInfo dto)
 {
     try
     {
         _businessCountry.Admin_MasterPriceInfoUpdate(countryId, dto);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #4
0
        public ActionResult UpdateMasterPriceInfo(int masterPriceInfoId)
        {
            MasterPriceInfo model = new MasterPriceInfo();

            if (masterPriceInfoId > 0)
            {
                var data = _ICountry.Admin_GetMasterPriceInfo(userEntity.MasterCountryId)
                           .FirstOrDefault(x => x.MasterPriceInfoId == masterPriceInfoId);
                model = data;
            }
            return(View(model));
        }
Exemple #5
0
 public void Admin_MasterPriceInfoUpdate(int countryId, MasterPriceInfo dto)
 {
     try
     {
         SqlHelper.countryId = countryId;
         SqlHelper.QuerySP("Admin_MasterPriceInfoUpdate",
                           new
         {
             MasterPriceInfoId = dto.MasterPriceInfoId,
             PriveLevel        = dto.PriveLevel,
             Food = dto.Food,
             Stay = dto.Stay
         });
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }