Example #1
0
        ///<summary>Remove all persistent data.</summary>
        public Response DeleteData()
        {
            Response rs = boardServe.DeleteData();

            if (rs.ErrorOccured)
            {
                return(rs);
            }
            Response rs1 = userServe.DeleteData();

            if (!rs1.ErrorOccured)
            {
                userServe  = new userService();
                boardServe = new boardService();
            }
            return(rs1);
        }
Example #2
0
 /// <summary>
 /// Simple public constructor.
 /// </summary>
 public Service()
 {
     userServe  = new userService();
     boardServe = new boardService();
 }