示例#1
0
        public void ConvertToDTO(DTO_Driver dtodriver)
        {
            dtodriver.Driver_Id        = Driver_Id;
            dtodriver.Account_Status   = Account_Status;
            dtodriver.Address_Line_1   = Address_Line_1;
            dtodriver.Address_Line_2   = Address_Line_2;
            dtodriver.Area_Id          = Area_Id;
            dtodriver.Close            = Close;
            dtodriver.Email            = Email;
            dtodriver.F_Name           = F_Name;
            dtodriver.L_Name           = L_Name;
            dtodriver.Mobile_Alternate = Mobile_Alternate;
            dtodriver.Mobile_Number    = Mobile_Number;
            dtodriver.Password         = Password;

            dtodriver.NGO_Id = NGO_DRIVER.Select(x => x.NGO_Id).ToList();
        }
示例#2
0
        public void ConvertToDTO(DTO_NGO dngo)
        {
            dngo.NGO_Id           = NGO_Id;
            dngo.Name             = Name;
            dngo.Address_Line_1   = Address_Line_1;
            dngo.Address_Line_2   = Address_Line_2;
            dngo.Mobile_Number    = Mobile_Number;
            dngo.Mobile_Alternate = Mobile_Alternate;
            dngo.Area_Id          = Area_Id;
            dngo.NGO_Logo_File    = NGO_Logo_File;
            dngo.Email            = Email;
            dngo.Website_URL      = Website_URL;
            dngo.Telephone        = Telephone;
            dngo.Password         = Password;
            dngo.Account_Status   = Account_Status;

            dngo.Driver_Id = NGO_DRIVER.Select(x => x.Driver_Id).ToList();
        }