/// <summary>
        /// 删除头部信息
        /// </summary>
        /// <param name="id">BannerID</param>
        /// <returns>响应实体模型</returns>
        public ResponseModel DelBanner(int id)
        {
            var banner = bannerRepository.GetbyId(id);

            if (banner == null)
            {
                return new ResponseModel {
                           code = 0, message = "Banner不存在"
                }
            }
            ;
            bool del = bannerRepository.DelEntity(banner);

            if (del == false)
            {
                return new ResponseModel {
                           code = 0, message = "删除失败"
                }
            }
            ;
            return(new ResponseModel {
                code = 200, message = "删除成功"
            });
        }