Example #1
0
        public EnterpriseModel CreateEnterprise(EnterpriseModel newEnterprise)
        {
            var enterpriseEntity    = mapper.Map <EnterpriseEntity>(newEnterprise);
            var newEnterpriseEntity = repository.CreateEnterprise(enterpriseEntity);

            return(mapper.Map <EnterpriseModel>(newEnterpriseEntity));
        }