Advertisement
vilgelmbb

OMG FIO getting

Jun 4th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.41 KB | None | 0 0
  1.     if (authorControl.ControlValue != null)
  2.             {
  3.                 if (!new Guid(authorControl.ControlValue.ToString()).Equals((Guid.Empty)))
  4.                 {
  5.                     authorControlValue = StaffService.Get((Guid)authorControl.ControlValue).DisplayName;
  6.  
  7.                     if ((StaffService.Get((Guid)authorControl.ControlValue).LastName != String.Empty)
  8.                     && (StaffService.Get((Guid)authorControl.ControlValue).LastName != null))
  9.                     {
  10.                         authorControlValue = StaffService.Get((Guid)authorControl.ControlValue).LastName;
  11.                     }
  12.  
  13.                     if ((StaffService.Get((Guid)authorControl.ControlValue).FirstName != String.Empty)
  14.                         && (StaffService.Get((Guid)authorControl.ControlValue).FirstName != null))
  15.                     {
  16.                         authorControlValue += " " + StaffService.Get((Guid)authorControl.ControlValue).FirstName.Substring(0, 1) + ".";
  17.                     }
  18.  
  19.                     if ((StaffService.Get((Guid)authorControl.ControlValue).MiddleName != String.Empty)
  20.                         && (StaffService.Get((Guid)authorControl.ControlValue).MiddleName != null))
  21.                     {
  22.                         authorControlValue += " " + StaffService.Get((Guid)authorControl.ControlValue).MiddleName.Substring(0, 1) + ".";
  23.                     }
  24.                 }
  25.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement