public JsonResult GetAdvertise(string page, string pageSize)
        {
            string message = string.Empty;
            bool success = false;
            List<ImageModel> result = new List<ImageModel>();
            int total = 0;
            try
            {
                string condition = string.Empty;
                condition = "([ImageType_Id] = 12 OR [ImageType_Id] = 13 OR [ImageType_Id] = 14 OR [ImageType_Id] = 15 OR [ImageType_Id] = 16)";
                var allImgs = GetEntities<ImageWithoutBody>(page, pageSize, out total, condition);
                foreach(var img in allImgs)
                {
                    ImageWithoutBody imwb = img as ImageWithoutBody;
                    ImageModel im = new ImageModel();
                    im.Name = imwb.Name;
                    im.Link = imwb.Link;
                    im.ImageType_Id = imwb.ImageType_Id;
                    im.Id = imwb.Id;
                    im.Ext = imwb.Ext;
                    result.Add(im);
                }
                success = true;
            }
            catch (Exception exception)
            {
                message = exception.Message;
            }

            return Json(new {Success = success,Message = message, Rows = result.ToArray(), Total = total }, JsonRequestBehavior.AllowGet);
        }
 public ActionResult Upload(ImageModel model)
 {
     return View("UploadImage", model);
 }