示例#1
0
        public override (IAccount Account, string AccessRole) ConvertToAccount(ISignUpViewModel model)
        {
            var account = Mapper.Map <MedicalInstituteAccount>(model as SignUpMedicalInstituteViewModel);

            GeometryFactory geometryFactory = GetGeometryFactory();

            account.Address.GeoLocation = geometryFactory.CreatePoint(new Coordinate(model.Address.Lng, model.Address.Lat));
            return((IAccount)account, AccessRoles.HealthOfficeUser);
        }
示例#2
0
        public override (IAccount Account, string AccessRole) ConvertToAccount(ISignUpViewModel model)
        {
            var account = Mapper.Map <PatientAccount>(model as SignUpPatientViewModel);

            GeometryFactory geometryFactory = GetGeometryFactory();

            account.Address.GeoLocation = geometryFactory.CreatePoint(new Coordinate(model.Address.Lng, model.Address.Lat));
            return(account, AccessRoles.WebClientUser);
        }