Esempio n. 1
0
        public static object Create(SessionInfo sessioninfo, MA_COUNTRY record)
        {
            try
            {
                CountryBusiness _countryBusiness = new CountryBusiness();

                record.ID          = Guid.NewGuid();
                record.LABEL       = record.LABEL.ToUpper();
                record.DESCRIPTION = record.DESCRIPTION.ToUpper();

                var addedRecord = _countryBusiness.Create(sessioninfo, record);

                return(new { Result = "OK", Record = addedRecord });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }
Esempio n. 2
0
 public Country Create(Country country)
 {
     return(business.Create(country));
 }