public IActionResult Get() { var query = _db.ManualItems.Where(mi => mi.DeletedAt == null) .ToList(); var dtoList = new List <ManualItemDto>(); query.ForEach(mi => { var dto = new ManualItemDto(); _utilities.AutoMap(ref dto, mi); dtoList.Add(dto); }); return(Ok(dtoList)); }