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)); }
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)); }