public async Task <ContestRangeModel> SaveContestRange(ContestRangeModel contestRangeModel)
        {
            var range = _mapper.Map <ContestRange>(contestRangeModel);
            await _repository.Save(range);

            return(_mapper.Map <ContestRangeModel>(range));
        }
        public async Task <IActionResult> Remove([FromBody] ContestRangeModel range)
        {
            try
            {
                await _contestRangesService.RemoveContestRange(range.Id);

                return(Ok(range.Id));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }
        public async Task <IActionResult> Save([FromBody] ContestRangeModel range)
        {
            try
            {
                var savedContestRange = await _contestRangesService.SaveContestRange(range);

                return(Created("Add", savedContestRange));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }