public string Check(int PropId, int ChannMgr) { object result = null; string strReturn = string.Empty; try { int user = ((OneFineRateBLL.BL_Login.UserDetails)(Session["UserDetails"])).iUserId; int i = BL_ChannelManager.CheckRecord(PropId, ChannMgr); if (i == 1) { result = new { st = 1, msg = "This property is mapped with the same Channel Manager. Do you want to reassign?" }; } else if (i == 2) { result = new { st = 1, msg = "This property is mapped with the some other Channel Manager. Do you want to reassign?" }; } else { result = new { st = 0, msg = "This property is not mapped with any Channel Manager. Do you want to assign?" }; } } catch (Exception) { result = new { st = 0, msg = "Kindly try after some time." }; } strReturn = OneFineRateAppUtil.clsUtils.ConvertToJson(result); return(strReturn); }