public ActionResult UserLogin(UsersModel userMl, string command)
        {
            StringBuilder objStringBuilderError = new StringBuilder();
            try
            {
                if (string.Equals(command, JetstreamResource.LoginCommand))
                {
                    if (userMl != null)
                    {
                        userMl.Password = CryptoManager.Encrypt(userMl.Password, true);
                        UsersModel objUser;
                        using (JetstreamClient objMainServiceClient = new JetstreamClient())
                        {
                            objUser = objMainServiceClient.LogOn(userMl);
                        }
                        if (objUser != null && objUser.UserId != 0)
                        {
                            Session["UserName"] = string.Format("{0} {1}", objUser.FirstName, objUser.LastName);
                            Session["UserId"] = objUser.UserId.ToString();
                            return RedirectToAction("InventoryDetail", "Inventory");
                        }
                        else
                        {
                            Danger(JetstreamResource.LoginFailed, true);
                            return RedirectToAction("UserLogin", "Login");
                        }
                    }
                }
                else if (command == JetstreamResource.ForgetPasswordCommand)
                {
                    return RedirectToAction("ForgetPassword", "Login");
                }
                return RedirectToAction("UserLogin", "Login");
            }
            catch (FaultException<ServiceData> fex)
            {
                objStringBuilderError.AppendLine("In method : UserLogin() :: LoginController");
                objStringBuilderError.AppendFormat("ErrorMessage::{0} {1}", fex.Detail.ErrorMessage, Environment.NewLine);
                objStringBuilderError.AppendFormat("ErrorDetails::{0} {1}", Environment.NewLine, fex.Detail.ErrorDetails);

                SaveLogger.SaveLoggerError(objStringBuilderError.ToString());
                return View("Error");
            }
            catch (Exception ex)
            {
                objStringBuilderError.AppendLine("In method : UserLogin() :: LoginController");
                objStringBuilderError.AppendFormat("ErrorMessage::{0} {1}", ex.Message, Environment.NewLine);
                objStringBuilderError.AppendFormat("ErrorDetails::{0} {1}", Environment.NewLine, ex.ToString());

                SaveLogger.SaveLoggerError(objStringBuilderError.ToString());
                return View("Error");
            }
        }