예제 #1
0
        public static double?NewDeposit(DepositDTO depositDTO)
        {
            db.Deposits.Add(DepositCast.CastToDAL(depositDTO));
            try
            {
                db.SaveChanges();
                return(depositDTO.depositAmount);
            }

            catch
            {
                return(0);
            }
        }