コード例 #1
0
        public async Task <ActionResult <StateProvinceResource> > CreateMusic([FromBody] SaveStateProvinceResource saveStateProvinceResource)
        {
            var stateProvince    = _mapper.Map <SaveStateProvinceResource, StateProvince>(saveStateProvinceResource);
            var newStateProvince = await _stateProvinceService.CreateStateProvince(stateProvince);

            return(Ok(newStateProvince));
        }