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