Exemplo n.º 1
0
        public bool ReturnItems(List <string> selectedBookIDs, string selected_Receipt_ID, string readerID, DateTime borrowdate, decimal coefficient)
        {
            List <string> listpara = new List <string>();

            foreach (string id in selectedBookIDs)
            {
                if (!CreateReturnReceipt(new PhieuTraDTO(selected_Receipt_ID, id, readerID, DateTime.Now, phieutraDTO.CalLibraryFine(int.Parse(coefficient.ToString())))))
                {
                    return(false);
                }
                phieumuonDAL.DeleteReceipt(id, selected_Receipt_ID);
            }

            return(true);
        }