public string GetCodeById(string objName, string obj_Id) { using (BusinessLayer.BL_Masters obj = new BL_Masters()) { return(obj.GetCodeById(objName, Guid.Parse(obj_Id))); } }