public async Task <ActionResult> Post([FromBody] CreateSignatureDTO signatureDTO) { if (!ModelState.IsValid) { return(BadRequest()); } await _signatureService.CreateAsync(signatureDTO); return(Ok()); }
public async Task CreateAsync(CreateSignatureDTO SignatureDto) { var signature = _mapper.Map <School.Domain.Signature>(SignatureDto); await this._repository.CreateAsync(signature); }