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

            return(new EmptyResponse());
        }