Esempio n. 1
0
        public ActionResult Delete(string id = "")
        {
            Logger.Debug("Inside Market Controller- Delete");
            try
            {
                if (Session["OrganizationGUID"] != null)
                {
                    ServicePointModel market = new ServicePointModel();
                    market.MarketGUID = id;
                    _IMarketRepository.DeleteMarket(new Guid(market.MarketGUID));
                    //_IMarketRepository.Save();

                    return(RedirectToAction("Index"));
                }
                else
                {
                    return(RedirectToAction("SessionTimeOut", "User"));
                }
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message);
                return(RedirectToAction("Index"));
            }
        }
Esempio n. 2
0
 public bool DeleteMarket(Market market)
 {
     return(_marketRepository.DeleteMarket(market));
 }