Esempio n. 1
0
        public static object CreateCSAType(SessionInfo sessioninfo, MA_CSA_TYPE record)
        {
            try
            {
                LookupBusiness _lookupbusiness = new LookupBusiness();
                record.ID    = Guid.NewGuid();
                record.LABEL = record.LABEL.ToUpper();
                record.LOG.INSERTBYUSERID = sessioninfo.CurrentUserId;
                record.LOG.INSERTDATE     = DateTime.Now;

                var added = _lookupbusiness.CreateCSAType(sessioninfo, record);
                return(new { Result = "OK", Record = added });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }
Esempio n. 2
0
        public static object CreateCSAType(SessionInfo sessioninfo, MA_CSA_TYPE record)
        {
            try
            {
                LookupBusiness _lookupbusiness = new LookupBusiness();
                record.ID = Guid.NewGuid();
                record.LABEL = record.LABEL.ToUpper();
                record.LOG.INSERTBYUSERID = sessioninfo.CurrentUserId;
                record.LOG.INSERTDATE = DateTime.Now;

                var added = _lookupbusiness.CreateCSAType(sessioninfo, record);
                return new { Result = "OK", Record = added };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }