private static object[] Take(EmployeePayItemEntity employeePayItem)
 {
     return(new object[]
     {
         "@EmployeePayItemID", employeePayItem.EmployeeId,
         "@PayItemID", employeePayItem.PayItemId,
         "@EmployeeID", employeePayItem.EmployeeId,
         "@SalaryRatio", employeePayItem.SalaryRatio,
         "@Amount", employeePayItem.Amount
     });
 }
        public int InsertEmployeePayItem(EmployeePayItemEntity payItemEntity)
        {
            const string sql = @"uspInsert_EmployeePayItem";

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