| | 1 | | using MUNity.Database.Models.Simulation; |
| | 2 | | using MUNity.Schema.Simulation; |
| | 3 | |
|
| | 4 | | namespace MUNity.Services.Extensions.CastExtensions; |
| | 5 | |
|
| | 6 | | public static class PetitionTypeCasts |
| | 7 | | { |
| | 8 | | public static PetitionTypeDto ToPetitionTypeDto(this PetitionType petitionType) |
| 0 | 9 | | { |
| 0 | 10 | | var mdl = new PetitionTypeDto() |
| 0 | 11 | | { |
| 0 | 12 | | Category = petitionType.Category, |
| 0 | 13 | | Description = petitionType.Description, |
| 0 | 14 | | Name = petitionType.Name, |
| 0 | 15 | | PetitionTypeId = petitionType.PetitionTypeId, |
| 0 | 16 | | Reference = petitionType.Reference, |
| 0 | 17 | | Ruling = petitionType.Ruling |
| 0 | 18 | | }; |
| 0 | 19 | | return mdl; |
| 0 | 20 | | } |
| | 21 | | } |