public async Task <IActionResult> UpdateImageVideoInfo([FromBody] ImageVideoInfo ImageVideoInfoModel)
        {
            try
            {
                ImageVideoInfoModel.ModifiedBy   = "Admin";
                ImageVideoInfoModel.ModifiedDate = DateTime.Now;

                db.Entry(ImageVideoInfoModel).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
                db.SaveChanges();
                return(Ok(ImageVideoInfoModel));
            }
            catch (Exception ex)
            {
                return(BadRequest());
            }
        }
 public async Task <IActionResult> CreateImageVideoInfo([FromBody] ImageVideoInfo ImageVideoInfoModel)
 {
     try
     {
         //bannerMaster.EnquiryID = 0;
         ImageVideoInfoModel.CreatedBy    = "Admin";
         ImageVideoInfoModel.CreatedDate  = DateTime.Now;
         ImageVideoInfoModel.ModifiedBy   = "Admin";
         ImageVideoInfoModel.ModifiedDate = DateTime.Now;
         ImageVideoInfoModel.Active       = true;
         db.imageVideoInfo.Add(ImageVideoInfoModel);
         db.SaveChanges();
         return(Ok(ImageVideoInfoModel));
     }
     catch (Exception ex)
     {
         return(BadRequest());
     }
 }