Beispiel #1
0
        public static JsonVerifyIdentity UpdateHouse(int IdEvt, int IdHouse)
        {
            JsonVerifyIdentity          ObjJsonVerifyIdentity          = new JsonVerifyIdentity();
            TrackManagement2PageManager ObjTrackManagement2PageManager = new TrackManagement2PageManager();
            UpdateHouseEvtInputDto      ObjUpdateHouseEvtInputDto      = new UpdateHouseEvtInputDto();

            ObjUpdateHouseEvtInputDto.id      = IdEvt;
            ObjUpdateHouseEvtInputDto.houseId = IdHouse;
            ObjTrackManagement2PageManager.UpdateHouseEvt(ObjUpdateHouseEvtInputDto);


            //if (email != "lully" || pwd != "lully")
            //{
            //    ObjJsonVerifyIdentity.errore = 1;
            //    ObjJsonVerifyIdentity.dettaglio = "Errore di autenticazione";



            //}
            //else
            //{
            //    ObjJsonVerifyIdentity.errore = 0;
            //    ObjJsonVerifyIdentity.destUrl = "/default.aspx";

            //}
            return(ObjJsonVerifyIdentity);
        }
Beispiel #2
0
        public static JsonVerifyIdentity VerifyIdentity(string email, string pwd)
        {
            JsonVerifyIdentity ObjJsonVerifyIdentity = new JsonVerifyIdentity();

            if (email != "lully" || pwd != "lully")
            {
                ObjJsonVerifyIdentity.errore    = 1;
                ObjJsonVerifyIdentity.dettaglio = "Errore di autenticazione";
            }
            else
            {
                ObjJsonVerifyIdentity.errore  = 0;
                ObjJsonVerifyIdentity.destUrl = "/default.aspx";
                //ObjJsonVerifyIdentity.dettaglio = "";
            }
            return(ObjJsonVerifyIdentity);
        }