コード例 #1
0
 public IEnumerable <Store> GetStoresByName(string name)
 {
     try
     {
         return(name == null
             ? _storeBl.GetAllStores()
             : _storeBl.GetStoreByName(name));
     }
     catch
     {
         throw new Exception("failed getting store by name");
     }
 }
コード例 #2
0
 // GET: Store
 public ActionResult Index()
 {
     return(View(_storeBl.GetAllStores()));
 }