public vmCmnOrganogram GetOrganogramByID(int?id) { vmCmnOrganogram obj = null; try { obj = objOrgnagramService.GetOrganogramByID(id); } catch (Exception e) { e.ToString(); } return(obj); }
/// <summary> /// Get Data From Database /// <para>Use it when to retive single data through a stored procedure</para> /// </summary> public vmCmnOrganogram GetOrganogramByID(int?id) { GenericFactoryFor_Organogram = new vmCmnOrganogram_GF(); vmCmnOrganogram objOrganogram = null; string spQuery = string.Empty; try { Hashtable ht = new Hashtable(); ht.Add("OrganogramID", id); spQuery = "[Get_CmnOrganogramSingle]"; objOrganogram = GenericFactoryFor_Organogram.ExecuteQuerySingle(spQuery, ht); } catch (Exception e) { e.ToString(); } return(objOrganogram); }