예제 #1
0
        public ProcResult AddCorporation(string corpName, long corpType, long @operator, long parentCorp, string loginName, string password)
        {
            try
            {
                var result = db.UP_AddCorp(corpName, corpType, @operator, parentCorp, loginName, password).FirstOrDefault();

                return(new ProcResult()
                {
                    IsSuccess = result.Split('|')[0] == "true",
                    ProcMsg = result.Split('|')[1]
                });
            }
            catch (Exception exception)
            {
                LogUtil.Exception("ERROR", exception);
                return(new ProcResult());
            }
        }