//
 // GET: /Agent/Browse
 public ActionResult Browse()
 {
     var model = new AgentListViewModel
     {
         agents = AgentBUS.GetList(),
         agentStates = AgentStateBUS.GetList(),
         DeleteId = 0
     };
     return View(model);
 }
        public ActionResult Delete(int id, FormCollection collection)
        {
            bool bSuccess = AgentBUS.Remove(id);
            var model = new AgentListViewModel
            {
                agents = AgentBUS.GetList(),
                agentStates = AgentStateBUS.GetList(),
                DeleteId = id
            };

            return Json(model);
        }