/// <summary>
 /// Takes the specified permission site.
 /// </summary>
 /// <param name="permissionSite">The permission site.</param>
 /// <returns></returns>
 private static object[] Take(PermissionSiteEntity permissionSite)
 {
     return(new object[]
     {
         @"PermissionSiteID", permissionSite.PermissionSiteId,
         @"PermissionID", permissionSite.PermissionId,
         @"SiteID", permissionSite.SiteId
     });
 }
        /// <summary>
        /// Inserts the estimate detail.
        /// </summary>
        /// <param name="permissionSite">The estimate detail.</param>
        /// <returns></returns>
        public int InsertPermissionSite(PermissionSiteEntity permissionSite)
        {
            const string sql = @"uspInsert_PermissionSite";

            return(Db.Insert(sql, true, Take(permissionSite)));
        }