示例#1
0
 public async Task Post([FromBody] StuffTypeModel stuffType)
 {
     await _stuffTypeService.AddStuffTypeAsync(stuffType);
 }
示例#2
0
        public override async Task <StuffTypeResponse> AddStuffType(AddStuffTypeRequest request, ServerCallContext context)
        {
            var addedStuffType = await _stuffTypeService.AddStuffTypeAsync(_mapper.Map <StuffTypeEntity>(request));

            return(_mapper.Map <StuffTypeResponse>(addedStuffType));
        }