public static ErrorData OnMoving(
     Context context, SiteSettings source, SiteSettings destination)
 {
     if (!Permissions.CanMove(context: context, source: source, destination: destination))
     {
         return(new ErrorData(type: Error.Types.HasNotPermission));
     }
     return(new ErrorData(type: Error.Types.None));
 }
 public static ErrorData OnMoving(
     Context context,
     SiteSettings ss,
     SiteSettings destinationSs,
     IssueModel issueModel)
 {
     if (ss.LockedTable())
     {
         return(new ErrorData(
                    type: Error.Types.LockedTable,
                    data: new string[]
         {
             ss.LockedTableUser.Name,
             ss.LockedTableTime.DisplayValue.ToString(context.CultureInfo())
         }));
     }
     if (ss.LockedRecord())
     {
         return(new ErrorData(
                    type: Error.Types.LockedRecord,
                    data: new string[]
         {
             issueModel.IssueId.ToString(),
             ss.LockedRecordUser.Name,
             ss.LockedRecordTime.DisplayValue.ToString(context.CultureInfo())
         }));
     }
     if (!Permissions.CanMove(
             context: context,
             source: ss,
             destination: destinationSs) ||
         issueModel.ReadOnly)
     {
         return(new ErrorData(type: Error.Types.HasNotPermission));
     }
     return(new ErrorData(type: Error.Types.None));
 }