public ActionResult ListByLocation(long id) { try { var sounds = db.FindAllByGHLocationID(id); return(PartialView(sounds)); } catch (Exception ex) { Log.Error(ex.Message, ex); return(HttpNotFound()); } }
public ServerReturnModel <IEnumerable <Sound> > GetPagedSoundsByGHLocationId(int id, int page, int pageSize) { try { return(new ServerReturnModel <IEnumerable <Sound> >("OK", _ss.FindAllByGHLocationID(id, page, pageSize).ToArray())); } catch (Exception ex) { Log.Error(ex.Message, ex); return(new ServerReturnModel <IEnumerable <Sound> >("ERROR", ex.Message)); } }