public async Task <ActionResult <Rights> > Get(Guid id) { try { var result = await rightRepo.RetrieveAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception) { return(BadRequest()); } }
public async Task <ActionResult <Rights> > Get(Guid id) { try { var result = await rightRepo.RetrieveAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception) { return(BadRequest()); } }