public BeltVM GetBeltById(int id) { var query = new GetBeltByIdQuery(id); var data = _readData.GetBeltById(query); var vm = _mapper.Map <BeltVM>(data); return(vm); }
public Belt GetBeltById(GetBeltByIdQuery query) { var data = _messages.Dispatch(query); return(data); }