public string DeleteUsers(int id) { object result = null; string strReturn = string.Empty; try { int i = BL_Users.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); }