public ActionResult ResetPasswordUserAccount(Models.DevelopmentTools.UserAccountModel userAccountModel)
 {
     Mapper.CreateMap <Models.DevelopmentTools.UserAccount, BusinessObjects.UserAccount>();
     BusinessObjects.UserAccount userAccount = Mapper.Map <Models.DevelopmentTools.UserAccount, BusinessObjects.UserAccount>(userAccountModel.userAccount);
     userAccount.Code = userAccount.Code.ToUpper();
     return(Content(service.ResetPasswordUserAccount(userAccount).ToString()));
 }
        public ActionResult UpdateUserAccount(Models.DevelopmentTools.UserAccountModel userAccountModel)
        {
            Mapper.CreateMap <Models.DevelopmentTools.UserAccount, BusinessObjects.UserAccount>();
            BusinessObjects.UserAccount         userAccount = Mapper.Map <Models.DevelopmentTools.UserAccount, BusinessObjects.UserAccount>(userAccountModel.userAccount);
            List <Dictionary <string, object> > session     = (List <Dictionary <string, object> >)Session["loginDetails"];
            string UserID = session[0]["ID"].ToString();

            userAccount.RegisteredByID = UserID;
            return(Content(service.UpdateUserAccounts("Update", userAccount).ToString()));
        }
Пример #3
0
        public ActionResult UpdateOfficialReceipt(string ORNumber, string isFinalize)
        {
            Mapper.CreateMap <Models.OfficialReceipt, BusinessObjects.OfficialReceipt>();
            List <Dictionary <string, object> > session = (List <Dictionary <string, object> >)Session["loginDetails"];
            string UserCode = session[0]["Code"].ToString();

            BusinessObjects.UserAccount     UserAccount          = DTSecurityservice.getUserAccountbyCode(UserCode);
            BusinessObjects.OfficialReceipt OfficialReceiptModel = new BusinessObjects.OfficialReceipt();
            OfficialReceiptModel.UserID         = UserAccount.ID;
            OfficialReceiptModel.OrganizationID = UserAccount.OrganizationID;
            OfficialReceiptModel.ORNumber       = ORNumber;
            return(Content(service.UpdateOfficialReceipt(OfficialReceiptModel, isFinalize).ToString()));
        }