Ejemplo n.º 1
0
        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));
        }