Пример #1
0
        public IActionResult Post([FromBody] RolPostDTO rol)
        {
            RolPostDTO rolResult = this.usuarioService.AddRol(rol);

            return(Ok(rolResult));
        }
Пример #2
0
 internal RolPostDTO AddRol(RolPostDTO rol)
 {
     Entities.Rol rolEntity = mapper.Map <RolPostDTO, Entities.Rol>(rol);
     this.rolDAO.Save(rolEntity);
     return(rol);
 }