Esempio n. 1
0
 public static ClsDisposition GetByDispositionID(Int64 ID)
 {
     try
     {
         ClsDisposition obj = new ClsDisposition();
         //Get data by Disposition_GetByID function from Disposition.DataAccess
         DataSet ds = new Disposition.DataAccess.ClsDispositionDataService().Disposition_GetByID(ID);
         if (!obj.MapData(ds))
         {
             obj = null;
         }
         return(obj);
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "GetByDispositionID()", "ClsDisposition.cs");
         return(null);
     }
 }
Esempio n. 2
0
        public static ClsDisposition GetByDispositionID(Int64 ID)
        {
            try
            {

                ClsDisposition obj = new ClsDisposition();
                //Get data by Disposition_GetByID function from Disposition.DataAccess
                DataSet ds = new Disposition.DataAccess.ClsDispositionDataService().Disposition_GetByID(ID);
                if (!obj.MapData(ds)) obj = null;
                return obj;
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "GetByDispositionID()", "ClsDisposition.cs");
                return null;
                
            }
            
        }