Exemple #1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            T_SupplierPayment t_SupplierPayment = await db.T_SupplierPayment.FindAsync(id);

            db.T_SupplierPayment.Remove(t_SupplierPayment);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public async Task <ActionResult> Edit([Bind(Include = "SPId,SupplierId,TrnDate,ReceivedAmount,TrnType,Due,SPDescription,Post,IUser,EUser,IDate,EDate,BrId")] T_SupplierPayment t_SupplierPayment)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_SupplierPayment).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_SupplierPayment));
        }
Exemple #3
0
        // GET: T_SupplierPayment/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            T_SupplierPayment t_SupplierPayment = await db.T_SupplierPayment.FindAsync(id);

            if (t_SupplierPayment == null)
            {
                return(HttpNotFound());
            }
            return(View(t_SupplierPayment));
        }