Exemplo n.º 1
0
 public async Task Post([FromBody] StuffTypeModel stuffType)
 {
     await _stuffTypeService.AddStuffTypeAsync(stuffType);
 }
Exemplo n.º 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));
        }