public IHttpActionResult PostRole(RoleDTO role)
 {
     if (!ModelState.IsValid)
     {
         return BadRequest(ModelState);
     }
     facade.GetRoleRepository().Add(new RoleConverter().Reverse(role));
     return CreatedAtRoute("DefaultApi", new { id = role.Id }, role);
 }
        public IHttpActionResult PutRole(int id, RoleDTO role)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != role.Id)
            {
                return BadRequest();
            }
            facade.GetRoleRepository().Update(new RoleConverter().Reverse(role));

            return StatusCode(HttpStatusCode.NoContent);
        }