public IHttpActionResult Get() { var allWorks = workService.GetAll().Select(m => new WorkDto(m)).ToList(); if (allWorks == null) { return(NotFound()); } return(Ok(allWorks)); }