Exemplo n.º 1
0
        public string DeleteCompanyInfo(int id)
        {
            try
            {
                CompanyInfoManager manager = new CompanyInfoManager();

                CompanyInfoEntity entity = manager.GetCompanyInfoByID(id);
                if (entity != null)
                {
                    entity.Valid      = "F";
                    entity.CreateTime = DateTime.Now;
                    entity.CreateTime = DateTime.Now;

                    manager.Update(entity);
                }

                return("success");
            }
            catch (Exception e)
            {
                return(e.ToString());
            }
        }
Exemplo n.º 2
0
        public string GetCompanyInfoByID(int id)
        {
            CompanyInfoManager manager = new CompanyInfoManager();

            return(new JavaScriptSerializer().Serialize(manager.GetCompanyInfoByID(id)));
        }