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