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 }
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); }
public Task <string> UpdateCompany(CompanyWcfItem company) { throw new NotImplementedException(); }