コード例 #1
0
ファイル: StatesBO.cs プロジェクト: jaiguers/document_manager
        /// <summary>
        /// Crear registro de Sancion
        /// Autor: Jair Guerrero
        /// Fecha: 2020-12-05
        /// </summary>
        public long Create(StatesAM entity)
        {
            try
            {
                var sancion = mapper.Map <States>(entity);

                IRepository <States> repo = new StatesRepo(context);
                return(repo.Create(sancion));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex.InnerException);
            }
        }