예제 #1
0
        public async Task <ActionResult> Overview([FromBody] AddOrUpdateGameOverviewDTO model)
        {
            try
            {
                await _services.AddOrUpdateOverview(model);

                return(new OkObjectResult(new ResultViewModel(model.GameId, 200, "Success!")));
            }
            catch (Exception)
            {
                return(new BadRequestObjectResult(new ResultViewModel(500, "Something went wrong! Try again later.")));
            }
        }