public string DeletePromoCode(int id) { object result = null; string strReturn = string.Empty; try { int i = BL_Amenity.DeleteRecord(id); if (i == 1) { result = new { st = 1, msg = clsUtils.ErrorMsg("Promo Code", 5) }; } else { result = new { st = 0, msg = clsUtils.ErrorMsg("", 3) }; } } catch (Exception) { result = new { st = 0, msg = clsUtils.ErrorMsg("", 3) }; } strReturn = OneFineRateAppUtil.clsUtils.ConvertToJson(result); return(strReturn); }
public string DeleteAmenity(int id) { object result = null; string strReturn = string.Empty; try { int i = BL_Amenity.DeleteRecord(id); if (i == 1) { result = new { st = 1, msg = "Deleted successfully." }; } else { result = new { st = 0, msg = "Kindly try after some time." }; } } catch (Exception) { result = new { st = 0, msg = "Kindly try after some time." }; } strReturn = OneFineRateAppUtil.clsUtils.ConvertToJson(result); return(strReturn); }