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