public async Task <BaseResponseWrapper> UploadTeams([FromForm] FileUpload objFile) { try { var result = GetStringFromFile(objFile); var data = JsonSerializer.Deserialize <List <FutbolTeam> >(result.ToString(), serializerOptions); await fantasySoccerService.OverwriteFutbolTeamsAsync(data); return(new ResponseWrapper <string> { StatusCode = Models.Responses.StatusCode.OK, Message = "Teams updated." }); } catch { return(new ResponseWrapper <string> { StatusCode = Models.Responses.StatusCode.BadRequest, Message = "Couldn't update teams. \nTry again later" }); } }