public async Task <IActionResult> Exist(string name, int?id = null) { try { var ext = await _rolService.Exists(this.Usuario, name, id); return(Ok(new { valid = !ext })); } catch (Exception e) { return(StatusCode(500, e.Message)); } }
public async Task <IActionResult> Exist(string name, int?id = null) { try { var ext = await _rolService.Exists(this.Usuario, name, id); return(Ok(new { valid = !ext })); } catch (Exception e) { return(StatusCode(500, e.Message)); } }