extra-curricular-schooling / extra-curricular-schooling/ecs-development

Exception thrown in ZipLocation model

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
C#
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Problem
Cannot register successfully if mailing address info is not provided. This is an issue because mailing address is not a requirement during registration. Registration is only completely successful if all inputs are provided during registration.

There are currently [Required] attributes for Address, City, State, and ZipCode in our ZipLocation model. Those attributes shouldn't be there but removing them and creating a new migration doesn't help. EF still doesn't accept empty strings and values in our design (ID doesn't update/stays at 0)

### Exception Thrown
Validation error thrown in ZipLocation model.

### Quick fix
Create mock data to assign to ZipLocation properties upon registration. This data are constants and can be found in ECS.Constants/Data Access/ZipLocationConstants.cs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.