public RedirectToActionResult addToRoster(int id) { var item = _unitRep.getUnits.FirstOrDefault(i => i.Id == id); if (item != null) { _roster.AddToRoster(item); } return(RedirectToAction("Index")); }
public RedirectToActionResult addToRoster(int id) { var item = _unitRep.getUnits.FirstOrDefault(i => i.Id == id); if (item != null) { _roster.AddToRoster(item); } return(RedirectToAction("Index")); }