/// <summary>
        /// Save exception in the database
        /// </summary>
        /// <param name="ex"></param>
        /// <returns></returns>
        public static bool SaveException(Exception ex)
        {
            var objEntity = new Optimus_TradeEntities();

            var objErrorTracer = new ErrorTracer()
            {
                ErrorMessage=ex.Message,
                ErrorDate=DateTime.Now,
                InnerException=ex.InnerException==null?null:ex.InnerException.ToString(),
                StackTrace=ex.StackTrace
            };
            objEntity.ErrorTracers.Add(objErrorTracer);
            objEntity.SaveChanges();
            return true;
        }
        public ActionResult Login(Login objLogin)
        {
            if (ModelState.IsValid)
            {
                using (var objEntity = new Optimus_TradeEntities())
                {

                    var result = objEntity.ClientDetails.Where(x => x.Email == objLogin.Email && x.Password == objLogin.Password).FirstOrDefault();
                    if (result != null)
                    {
                        FormsAuthentication.SetAuthCookie(objLogin.Email, objLogin.RememberMe);

                      return  RedirectToAction("GetTransactionDetails", "OrderDetails");
                    }
                }
            }
            return View(objLogin);
        }