public ActionResult <IEnumerable <DirectionShort> > GetValidDirections() { return(ParallaxController.GetDirections().Where(x => x.From != null && x.To != null).ToList().ConvertAll(new Converter <Direction, DirectionShort>(DirectionShort.Convert))); }
public ActionResult <IEnumerable <DirectionShort> > GetDirections() { return(ParallaxController.GetDirections()); }