public ActionResult GetLocationByRackName(ServerDetailsViewModel model)
        {
            Server s = new Server();
            s.ServerCode = model.ServerCode;
            s.Power = model.Power;
            s.Customer = model.Customer;
            var locations = LocationBLO.Current.GetChangeLocation(s);
            var data = new ServerDetailsViewModel();
            if (!String.IsNullOrWhiteSpace(model.SelectedRack))
            {
                locations = locations.Where(r => r.RackName.Trim() == model.SelectedRack.Trim()).ToList();
            }
            data.Locations1 = locations;

            return Json(data, JsonRequestBehavior.AllowGet);
        }
 // GET: Server/Details
 public ActionResult Detail(string code, string Message)
 {
     var data = new ServerDetailsViewModel();
     data.UserRole = GetCurrentUserRole();   
     data.SuccessMessage = Message;
     data.Server = ServerBLO.Current.GetAllServerInfo(code);
     //var serverattributes = ServerBLO.Current.GetServerAttributes(serverCode);
     var ips = ServerIPBLO.Current.GetCurrentIP(code);
     if (ips != null)
     {
         data.CurrentIPs = ips;
     }
     //get customer
     data.CustomerInfo = AccountBLO.Current.GetAccountByCode(data.Server.Customer);
     return View(data);
 }