コード例 #1
0
        public async Task <ActionResult> Post([FromBody] CreateSignatureDTO signatureDTO)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            await _signatureService.CreateAsync(signatureDTO);

            return(Ok());
        }
コード例 #2
0
        public async Task CreateAsync(CreateSignatureDTO SignatureDto)
        {
            var signature = _mapper.Map <School.Domain.Signature>(SignatureDto);

            await this._repository.CreateAsync(signature);
        }