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()); }