public async Task <IActionResult> Get(int id) { if (!await new SegurancaClienteHelper().Autorizado(Request)) { return(Unauthorized()); } Cliente c = _helper.Obter(id); if (c == null) { return(NotFound()); } else { return(Ok(c)); } }
public IActionResult Get(int id) { if (!SegurancaGerencialHelper.Autorizado(Request)) { return(Unauthorized()); } Cliente c = _chelper.Obter(id); if (c == null) { return(NotFound()); } else { return(Ok(c)); } }