public static string VahedSodoor(this string idVahed) { CheckOutRequestBusiness reqBusiness = new CheckOutRequestBusiness(); if (!string.IsNullOrEmpty(idVahed)) { var dt = reqBusiness.GetNameOfVahedByVahedID(Convert.ToInt32(idVahed)); if (dt.Rows.Count > 0) { if (dt.Rows[0]["vahed"].ToString() != "Null") { return(dt.Rows[0]["vahed"].ToString()); } } } return("--"); }