public static CompanyEditUoW GetCompanyEdit(int companyID)
        {
            var command = new CompanyEditUoW();

            command.LoadProperty(CompanyIDProperty, companyID);
            return(DataPortal.Execute <CompanyEditUoW>(command));
        }
Example #2
0
        public static void GetCompanyEdit(int companyID, EventHandler<DataPortalResult<CompanyEditUoW>> callback)
        {
#pragma warning disable 0618 
            var command = new CompanyEditUoW();
            command.LoadProperty(CompanyIDProperty, companyID);
#pragma warning restore 0618 

            DataPortal.BeginExecute<CompanyEditUoW>(command, callback);
        }
        public static void GetCompanyEdit(int companyID, EventHandler <DataPortalResult <CompanyEditUoW> > callback)
        {
#pragma warning disable 0618
            var command = new CompanyEditUoW();
            command.LoadProperty(CompanyIDProperty, companyID);
#pragma warning restore 0618

            DataPortal.BeginExecute <CompanyEditUoW>(command, callback);
        }
 public static CompanyEditUoW GetCompanyEdit(int companyID)
 {
     var command = new CompanyEditUoW();
     command.LoadProperty(CompanyIDProperty, companyID);
     return DataPortal.Execute<CompanyEditUoW>(command);
 }