Exemplo n.º 1
0
        public bool AddUserBankDetails(GetUserBankDetails userVM)
        {
            l2g_tbl_UserBankDetails user = MappingConfig.GetUserBankDetailsToDataEntity(userVM);

            user.CreatedDate = DateTime.Now;
            try
            {
                db.l2g_tbl_UserBankDetails.Add(user);
                db.SaveChanges();
            }
            catch (Exception)
            {
                return(false);
            }
            return(true);
        }