Example #1
0
 public async Task Put(int id, [FromBody] StuffTypeModel stuffType)
 {
     await _stuffTypeService.UpdateStuffTypeAsync(stuffType);
 }
Example #2
0
        public override async Task <EmptyResponse> UpdateStuffType(UpdateStuffTypeRequest request, ServerCallContext context)
        {
            await _stuffTypeService.UpdateStuffTypeAsync(_mapper.Map <StuffTypeEntity>(request));

            return(new EmptyResponse());
        }