コード例 #1
0
        // GET: Home
        public ActionResult Contact()
        {
            List <VMContact> Contacts = _contactServices.GetContacts();

            return(View(Contacts));

            //return View();
        }
コード例 #2
0
        // GET: api/Contact
        /// <summary>
        ///  Get All Contact By
        /// Created Date: 10 Apr 2018
        /// Created By : Omkar M.
        /// </summary>
        /// <returns></returns>
        public IHttpActionResult Get()
        {
            var product = _contactServices.GetContacts();

            if (product == null)
            {
                return(NotFound());
            }
            return(Ok(product));
        }