Example #1
0
        /// <summary>
        /// Get Email by phone record Id
        /// </summary>
        /// <param name="id">Id of the phone to be searched</param>
        /// <returns></returns>
        public IHttpActionResult Get(int id)
        {
            var record = _phoneService.FindBy(t => t.Id == id);

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