Beispiel #1
0
        /// <summary>
        ///     Saves this instance.
        /// </summary>
        /// <returns></returns>
        public int Save()
        {
            var refTypeModel = new RefTypeModel
            {
                RefTypeId = View.RefTypeId,
                DefaultCreditAccountCategoryId = View.DefaultCreditAccountCategoryId,
                DefaultCreditAccountId         = View.DefaultCreditAccountId,
                DefaultDebitAccountCategoryId  = View.DefaultDebitAccountCategoryId,
                DefaultDebitAccountId          = View.DefaultDebitAccountId,
                DefaultTaxAccountCategoryId    = View.DefaultTaxAccountCategoryId,
                DefaultTaxAccountId            = View.DefaultTaxAccountId,
                RefTypeName = View.RefTypeName
            };

            return(View.RefTypeId > 0 ? Model.UpdateRefType(refTypeModel) : 0);
        }
 public string UpdateRefType(RefTypeModel refTypeModel)
 {
     throw new NotImplementedException();
 }
 public string DeleteRefTypeDetail(RefTypeModel refTypeModel)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 internal static RefTypeEntity ToDataTransferObject(RefTypeModel model)
 {
     return(model == null ? null : AutoMapper.Mapper.Map <RefTypeModel, RefTypeEntity>(model));
 }