public async Task <IActionResult> GetPayRollTransactionsByEmployeeView(long payRollTransactionsByEmployeeId)
        {
            PayRollTransactionsByEmployeeModule invMod = new PayRollTransactionsByEmployeeModule();

            PayRollTransactionsByEmployeeView view = await invMod.PayRollTransactionsByEmployee.Query().GetViewById(payRollTransactionsByEmployeeId);

            return(Ok(view));
        }
        public async Task <IActionResult> DeletePayRollTransactionsByEmployee([FromBody] PayRollTransactionsByEmployeeView view)
        {
            PayRollTransactionsByEmployeeModule invMod = new PayRollTransactionsByEmployeeModule();
            PayRollTransactionsByEmployee       payRollTransactionsByEmployee = await invMod.PayRollTransactionsByEmployee.Query().MapToEntity(view);

            invMod.PayRollTransactionsByEmployee.DeletePayRollTransactionsByEmployee(payRollTransactionsByEmployee).Apply();

            return(Ok(view));
        }
        public async Task <IActionResult> AddPayRollTransactionsByEmployee([FromBody] PayRollTransactionsByEmployeeView view)
        {
            PayRollTransactionsByEmployeeModule invMod = new PayRollTransactionsByEmployeeModule();

            NextNumber nnPayRollTransactionsByEmployee = await invMod.PayRollTransactionsByEmployee.Query().GetNextNumber();

            view.PayRollTransactionsByEmployeeNumber = nnPayRollTransactionsByEmployee.NextNumberValue;

            PayRollTransactionsByEmployee payRollTransactionsByEmployee = await invMod.PayRollTransactionsByEmployee.Query().MapToEntity(view);

            invMod.PayRollTransactionsByEmployee.AddPayRollTransactionsByEmployee(payRollTransactionsByEmployee).Apply();

            PayRollTransactionsByEmployeeView newView = await invMod.PayRollTransactionsByEmployee.Query().GetViewByNumber(view.PayRollTransactionsByEmployeeNumber);


            return(Ok(newView));
        }