예제 #1
0
        public ActionResult Delete(string id, FormCollection collection)
        {
            if (id == null)
            {
                throw new ArgumentNullException("id", "No initiative id provided.");
            }

            var initiative = GetInitiativeViewModel(id);

            try
            {
                _initiativeBusiness.DeleteInitiative(initiative.Id);
                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }