public GetAllRawMaterialsOutput GetAllRawMaterials() { var rawMaterials = _RawMaterialRepository.GetAll().OrderBy(b => b.CreationTime); return(new GetAllRawMaterialsOutput { RawMaterials = Mapper.Map <List <RawMaterialDto> >(rawMaterials) }); }
public async Task <IEnumerable <RawMaterial> > GetAll(int corpClientId, OrderByDirection direction) { return(await rawMaterialRepository.GetAll(corpClientId, direction)); }