Skip to content

Instantly share code, notes, and snippets.



Created Oct 15, 2010
What would you like to do?
[BaseSecurityFilter(role: "Admin")]
public class AuditController : BaseController
private readonly dynamic _structureService;
public ViewResult All()
var audits = _commonDao.GetAll<Audit>(new[] { "CreatedOn" });
var auditDtos = Mapper.Map<IList<Audit>, List<AuditDto>>(audits);
var indexContainer = new AuditIndexContainer(auditDtos);
return View("All", indexContainer);
public virtual ViewResult Delete(Guid deleteAuditUid)
var audit = _commonDao.GetObjectById<Audit, Guid>(deleteAuditUid);
return All();
public virtual ViewResult Index()
List<NameValueDTO> businessUnits = _structureService.BusinessUnitsForLookUpsWithDefault(GetCurrentUser, "All");
var indexContainer = new AuditIndexContainer(businessUnits);
return View(indexContainer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.