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

            db.T_GRN_MST.Remove(t_GRN_MST);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public async Task <ActionResult> Edit([Bind(Include = "ReceiveId,ReceiveDate,ReceiveNo,InvoiceNo,SupplierID,ApprovedStatus,GrossAmount,Discount,CashPaid,DueAmount,Type,IsRemoved,IUSER,EUSER,IDAT,EDAT,BrId")] T_GRN_MST t_GRN_MST)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_GRN_MST).State = EntityState.Modified;
                await db.SaveChangesAsync();

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

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