コード例 #1
0
        // GET: Lead/Details/5
        public async Task <ActionResult> Details(string id)
        {
            var result = await Repository.GetItemAsync(id, DefaultContactType.ToString());

            ViewBag.Area     = Constants.ContactArea;
            ViewBag.TotalRUs = result.Item1;
            return(View(result.Item2));
        }
コード例 #2
0
        // GET: Lead/Details/5
        public async Task <ActionResult> Details(string id)
        {
            var result = await Repository.GetItemAsync(id, DefaultContactType.ToString());

            ViewBag.Area             = Constants.LeadArea;
            ViewBag.TotalRUs         = result.Item1;
            ViewBag.ReadEndpoint     = result.Item2;
            ViewBag.WriteEndpoint    = result.Item3;
            ViewBag.ConsistencyLevel = result.Item4;
            return(View(result.Item5));
        }
コード例 #3
0
        public async Task <ActionResult <Tuple <double, string, string, string, Contact> > > Get(string id, string contactType)
        {
            var result = await Repository.GetItemAsync(id, contactType);

            return(new Tuple <double, string, string, string, Contact>(result.Item1, result.Item2, result.Item3, result.Item4, result.Item5));
        }