Ejemplo n.º 1
0
        /// <summary>
        /// Action for deleting a RazorView
        /// </summary>
        /// <param name="org">The Organization code for the service owner</param>
        /// <param name="service">The service code for the current service</param>
        /// <param name="edition">The edition code for the current service</param>
        /// <param name="id">The name of the view</param>
        /// <returns>The View</returns>
        public ActionResult Delete(string org, string service, string edition, string id)
        {
            bool deleted = _viewRepository.DeleteView(org, service, edition, id);

            if (deleted)
            {
                _repository.DeleteTextResource(org, service, edition, id);
            }

            return(RedirectToAction("Index"));
        }