public async Task <IActionResult> UpdateSocialMediaMasters([FromBody] SocialMediaMasters socialMediaMasters)
        {
            try
            {
                socialMediaMasters.ModifiedBy   = "Admin";
                socialMediaMasters.ModifiedDate = DateTime.Now;

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