public ActionResult InvoiceCreate(int?id)
 {
     SetViewBagStaff();
     SetViewBagLead();
     if (id != null)
     {
         var        dao           = new ApartmentDao();
         SelectList ApartmentList = new SelectList(dao.ListAll(), "ID", "ApartmentNumber", id.ToString());
         ViewBag.ApartmentId = ApartmentList;
     }
     else
     {
         SetViewBagApartment();
     }
     return(View());
 }
        public void SetViewBagApartment()
        {
            var dao = new ApartmentDao();

            ViewBag.ApartmentId = new SelectList(dao.ListAll(), "Name", "vui lòng chọn");
        }