コード例 #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");
     }
 }