コード例 #1
0
        public int RegisterUser(RegistrationModel regModel)
        {
            Organisation org = new Organisation()
            {
                Username           = regModel.Username,
                Password           = regModel.Password,
                Email              = regModel.Email,
                Name               = regModel.OrganisationName,
                ActivationCode     = regModel.ActivationCode,
                IdTypeOrganisation = regModel.OrganisationTypeId,
                IsActive           = false
            };

            oRepository.Add(org);

            return(oRepository.Complete());
        }