Ejemplo n.º 1
0
        public async Task <ActionResult> GetContests()
        {
            try
            {
                var result = await _contestService.GetAllContestsAsync();

                return(Result.Ok(result));
            }
            catch (Exception ex)
            {
                return(Result.Error(ex));
            }
        }