Esempio n. 1
0
        public async Task <ActionResult <ClubRateCreateDTO> > CreateClubRate([FromBody] ClubRateCreateDTO rate)
        {
            try
            {
                var returnedRate = await _rateService.CreateClubRate(rate);

                return(Ok(returnedRate));
            }
            catch (Exception exception)
            {
                return(BadRequest(exception.Message));
            }
        }