Пример #1
0
        //xoa
        public ActionResult xoamaytinh(string idmay = "")
        {
            MayList    mayList = new MayList();
            List <May> obj     = mayList.getMay(idmay);

            return(View(obj.FirstOrDefault())); //lấy idmay đầu tiên trong danh sách máy
        }
Пример #2
0
        //chi tiet may
        public ActionResult Detail(string idmay = "")
        {
            MayList    mayList = new MayList();
            List <May> obj     = mayList.getMay(idmay);

            return(View(obj.FirstOrDefault()));
        }
Пример #3
0
        // GET: May
        public ActionResult May()
        {
            MayList    mayList = new MayList();
            List <May> obj     = mayList.getMay(string.Empty);

            return(View(obj));
        }