Ejemplo n.º 1
0
        public string UpdateAliasName()
        {
            AliasNameManager manager = new AliasNameManager();
            AliasNameModel   model   = new AliasNameModel();

            model.BOId       = Request["BOID"];
            model.Name       = Request["NAME"];
            model.AppDomain  = Request["APPDOMAIN"];
            model.CreatUser  = Request["CREATUSER"];
            model.UploadDate = System.DateTime.Parse(Request["UPLOADDATE"]);
            if (manager.Exist(model))
            {
                return("NO");
            }
            else
            {
                try
                {
                    manager.Update(model);
                    return("OK");
                }
                catch
                {
                    return("false");
                }
            }
        }
Ejemplo n.º 2
0
        public string AddAliasName()
        {
            AliasNameManager manager = new AliasNameManager();
            AliasNameModel   model   = new AliasNameModel();

            model.BOId      = Request["BOID"];
            model.Name      = Request["NAME"];
            model.AppDomain = Request["APPDOMAIN"];
            if (manager.Exist(model))
            {
                return("NO");
            }
            else
            {
                try
                {
                    manager.Add(model);
                    return("OK");
                }
                catch
                {
                    return("false");
                }
            }
        }