Exemplo n.º 1
0
        // POST api/<controller>
        /// <summary>
        /// Posts the specified value.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <returns></returns>
        public Language Post([FromBody] Language value)
        {
            Language objItem = new Language();

            try
            {
                objItem = LanguageManager.AddItem(value);
            }
            catch (Exception ObjEx)
            {
                IfindLogManager.AddItem(new IfindLog()
                {
                    LinkUrl = Request.RequestUri.AbsoluteUri, Exception = ObjEx.Message, Message = ObjEx.StackTrace
                });
            }
            return(objItem);
        }