Exemplo n.º 1
0
 public IActionResult GetByOwner(long ownerId, long groupId)
 {
     try
     {
         var lists = _listService.GetAllByOwner(ownerId, groupId);
         var json  = JsonConvert.SerializeObject(lists, Formatting.None,
                                                 new JsonSerializerSettings()
         {
             ReferenceLoopHandling = ReferenceLoopHandling.Ignore
         });
         return(Ok(json));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }