public void AddBrower(Brower brower)
 {
     using (var context = new Fx.Domain.FxBrower.FxBrowerContext())
     {
         context.Browers.Add(brower);
         context.SaveChanges();
     }
 }
 private void SaveUserAgent()
 {
     BrowerService service = new BrowerService();
     if (!service.IsExist(Session.SessionID))
     {
         var agents = Request.Browser;
         var brower = new Brower();
         brower.Name = agents.Browser;
         brower.Version = agents.Version;
         brower.Platform = agents.Platform;
         brower.ECMAScriptVersion = agents.EcmaScriptVersion.ToString();
         brower.IsMobileDevice = agents.IsMobileDevice;
         brower.SessionID = Session.SessionID;
         brower.UserAgentDetails = Request.UserAgent;
         StringBuilder sb = new StringBuilder();
         foreach (System.Collections.DictionaryEntry item in agents.Capabilities)
         {
             sb.AppendLine(item.Key + "-----" + item.Value);
         }
         brower.Other = sb.ToString();
         service.AddBrower(brower);
     }
 }