Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public class RoleModel
  2. {
  3. public string Id{ get; set; }
  4. public string Nome { get; set; }
  5. public string NomeNormalizado { get; set; }
  6. public string SeloConcorrencia { get; set; }
  7.  
  8. public RoleModel() { }
  9.  
  10. public RoleModel(ApplicationRole applicationRole)
  11. {
  12. Id = applicationRole.Id;
  13. Nome = applicationRole.Name;
  14. NomeNormalizado = applicationRole.NormalizedName;
  15. SeloConcorrencia = applicationRole.ConcurrencyStamp;
  16. }
  17. }
  18.  
  19. [HttpPost]
  20. [Route("api/Pessoa/AdicionarPessoa")]
  21. [Authorize(Roles = "Administrador")]
  22. public Pessoa AdicionarPessoa([FromBody]Pessoa model)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement