public class UserCredentialsModel : IdentityUser, IModelEntity{ [Required] string Id { get; set; } [Required] public DateTime CreatedAt { get; set; } public ICollection<RefreshTokenModel> RefreshTokens { get; } = new List<RefreshTokenModel>(); public CompanyUserModel? CompanyProfile { get; set; } public PanelUserModel? PanelProfile { get; set; } public PortalManagerUserModel? PortalManagerProfile { get; set; }}
UserCredentialsModel
{ "name": "string", "birthDate": "2023-12-09T18:50:55.382Z", "reviews": [ { "id": 0, "title": "string", "text": "string", "reviewer": { "id": 0, "firstName": "string", "lastName": "string", "reviews": [ "string"
[HttpPost]public async Task<ActionResult<PokemonGetDTO>> Post(PokemonCreateDTO dto){ var entity = _mapper.Map<Pokemon>(dto); await _repository.Add(entity); var createdDto = _mapper.Map<PokemonGetDTO>(entity); return CreatedAtAction(nameof(Get), new { id = entity.Id }, createdDto);}