コード例 #1
0
ファイル: WorkTypeController.cs プロジェクト: zhibek-7/dordoi
        public async Task <ActionResult <WorkType> > GetWorkTypeById(Guid id)
        {
            WorkType typeOfWork = await workTypeRepository.GetByIDAsync(id);

            if (typeOfWork == null)
            {
                return(BadRequest("Type of wprk not found"));
            }
            return(Ok(typeOfWork));
        }