示例#1
0
        ///<summary>
        /// Trả về thể loại theo ID
        ///</summary>
        // GET: api/Types/GetType/id
        public IHttpActionResult GetType(int id)
        {
            var select = sv.FindById(id);

            if (select != null)
            {
                return(Ok(select));
            }
            else
            {
                return(NotFound());
            }
        }