示例#1
0
 public static CompanyItem ConvertCompanyItemToData(this CompanyWcfItem ci)
 {
     return(new CompanyItem()
     {
         CompanyTypeEnum = (CompanyTypeEnum)ci.CompanyTypeEnum, ContryCode = ci.ContryCode, Id = ci.Id, CompanyTypeItem = ci.CompanyTypeItem.ConvertCompanyItemToData(), Name = ci.Name
     });                                                                                                                                                                                                     // = ci.CompanyTypeItem.ConvertCompanyItemToWcf() };//CompanyTypeItem= ci.CompanyTypeItem
 }
示例#2
0
        public async Task <string> AddCompany(CompanyWcfItem company)
        {
            ExecuteStoredCompany execute = new ExecuteStoredCompany();
            Company returnedCompany      = await execute.InsertCompany("testName", 100, (int)CompanyTypeEnum.Other);

            return("inserted " + returnedCompany.Id);
        }
示例#3
0
 public Task <string> UpdateCompany(CompanyWcfItem company)
 {
     throw new NotImplementedException();
 }