Exemple #1
0
        public ActionResult AddNote(Note note)
        {
            Employee emp  = Session["Login"] as Employee;
            Customer cust = Session["Customer"] as Customer;

            note.CustomerID = cust.CustomerID;
            note.EmployeeID = emp.EmployeeID;
            note.DateTime   = DateTime.Now;
            noteBLL.AddNote(note);
            return(RedirectToAction("Detail", "Customer", new { id = cust.CustomerID }));
        }