public IActionResult Post([FromBody] RolPostDTO rol) { RolPostDTO rolResult = this.usuarioService.AddRol(rol); return(Ok(rolResult)); }
internal RolPostDTO AddRol(RolPostDTO rol) { Entities.Rol rolEntity = mapper.Map <RolPostDTO, Entities.Rol>(rol); this.rolDAO.Save(rolEntity); return(rol); }