Ejemplo n.º 1
0
        public IActionResult AddCollection(Collection c)
        {
            int h;

            try
            {
                h = bll.AddCollection(c);
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
                throw;
            }

            return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "收藏成功" : "收藏失败" }));
        }