// uloží nový záznam public string SaveCompany(CompanyEntity newCompany) { VERSION_COMPANY companyToDB = new VERSION_COMPANY(); companyToDB.VER_COMPANY = newCompany.Name; companyToDB.VER_COMPANY_ACTIVE = newCompany.Active; companyToDB.VER_COMPANY_DESC = newCompany.Description; companyToDB.VER_COMPANY_INTERFACE = newCompany.Interface; companyToDB.VER_COMPANY_TYPE = newCompany.Type; companyToDB.VER_COMPANY_LANGUAGE = newCompany.Language; return(dbRepository.AddCompany(companyToDB)); }