public ActionResult GetArchor()
        {
            ArchorTrans recv = Activator.CreateInstance <ArchorTrans>();
            Archor      ch   = new Archor();

            try
            {
                string url = "http://localhost:41363/api/Archor/1";

                recv = TransClass.GetMethod <ArchorTrans> .GetHasDateTime(url);

                Archor ch2 = new Archor();
                ch2 = recv.data[0];
                if (ch2 != null)
                {
                    ch = ch2;
                }
            }
            catch (Exception ex)
            {
                string messgae = ex.Message;
            }

            return(View(ch));
        }
        public ArchorTrans GetAllArchors()
        {
            ArchorTrans send = new ArchorTrans();

            List <Archor> archorList = bllNoVirtual.Archors.ToList();

            send.total = archorList.Count;
            send.msg   = "ok";
            send.data  = archorList;

            return(send);
        }
        public ActionResult GetAllArchors()
        {
            ArchorTrans recv = Activator.CreateInstance <ArchorTrans>();

            try
            {
                string url = "http://localhost:41363/api/Archor";

                recv = TransClass.GetMethod <ArchorTrans> .Get(url);
            }
            catch (Exception ex)
            {
                string messgae = ex.Message;
            }

            return(View(recv.data));
        }
        public ArchorTrans GetArchor(int?id)
        {
            ArchorTrans send = new ArchorTrans();

            send.total = 1;
            send.msg   = "ok";

            if (id != null)
            {
                Archor archor = bllNoVirtual.Archors.Find(id);
                if (archor != null)
                {
                    List <Archor> archorList = new List <Archor>();
                    archorList.Add(archor);
                    send.data = archorList;
                }
            }

            return(send);
        }