This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: _fops on Jan 12th, 2014  |  syntax: C#  |  size: 0.29 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         protected override bool BeforeSaveEntity(EntityInfo entityInfo)
  2.         {
  3.             // use beforesaveentity for security checks
  4.             var entity = entityInfo.Entity;
  5.  
  6.             if (entity is tblVehicleModels)
  7.             {
  8.                 return IsAdmin;
  9.             }
  10. ...
clone this paste RAW Paste Data