Ejemplo n.º 1
0
        public async Task <BaseResponseWrapper> CleanTeams()
        {
            try
            {
                await fantasySoccerService.CleanFutbolTeamsAsync();

                return(new ResponseWrapper <string>
                {
                    StatusCode = Models.Responses.StatusCode.OK,
                    Message = "Teams cleaned."
                });
            }
            catch
            {
                return(new ResponseWrapper <string>
                {
                    StatusCode = Models.Responses.StatusCode.BadRequest,
                    Message = "Couldn't clean teams. \nTry again later."
                });
            }
        }