public IHttpActionResult GetArmorByName(string name) { _armorService = GetArmorService(); var feat = _armorService.GetArmorByName(name); if (feat == null) { return(NotFound()); } return(Ok(feat)); }
public IHttpActionResult GetArmorByID(int id) { _armorService = GetArmorService(); var feat = _armorService.FindBy(id); if (feat == null) { return(NotFound()); } return(Ok(feat)); }