[PrincipalPermission(SecurityAction.Demand, Role = "Admin")] public List<DataModels.BookStatus> ListOfBooks(DataModels.PortalsList PortalsList, DateTime StartDateTime, DateTime EndDateTime, bool BookPublishedStatus, string Username) { try { objBookList = objListOfBooks.GetListOfBooks(PortalsList, StartDateTime, EndDateTime, BookPublishedStatus, Username); return objBookList; } catch (SecurityAccessDeniedException) { throw new FaultException("You can't access admin methods."); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)