public RESPONSE_MODEL AddApplication(APPLICATIONS source)
        {
            try
            {
                APPLICATIONS application = new APPLICATIONS();
                application.APP_NAME        = source.APP_NAME;
                application.APP_CODE        = source.APP_CODE;
                application.APP_DESCRIPTION = source.APP_DESCRIPTION;
                application.APP_STATUS      = source.APP_STATUS;
                application.APP_URL         = source.APP_URL;

                ctx.APPLICATIONS.Add(application);

                APPLICATION_MENUS menu = new APPLICATION_MENUS();
                menu.APP_ID      = application.APP_ID;
                menu.MENU_LEVEL  = 0;
                menu.MENU_SEQ    = 0;
                menu.MENU_STATUS = 1;
                menu.MENU_NAME   = "Home";

                ctx.APPLICATION_MENUS.Add(menu);

                ctx.SaveChanges();
            }
            catch (Exception ex)
            {
                resp = ErrorCollection(ex);
            }
            return(resp);
        }
        public RESPONSE_MODEL AddApplicationMenu(APPLICATION_MENU_MODEL source)
        {
            try
            {
                var menu = new APPLICATION_MENUS();
                menu.MENU_NAME   = source.MENU_NAME;
                menu.MENU_STATUS = source.MENU_STATUS;
                menu.MENU_SEQ    = source.MENU_SEQ;
                menu.MENU_LEVEL  = source.MENU_LEVEL;
                menu.PARENT_ID   = source.PARENT_ID;
                menu.APP_ID      = source.APP_ID;

                ctx.APPLICATION_MENUS.Add(menu);
                ctx.SaveChanges();
            }
            catch (Exception ex)
            {
                resp = ErrorCollection(ex);
            }
            return(resp);
        }