private void Create() { newEntity = new WithdrawalEntity(); newEntity.Amount = Convert.ToDecimal(this.txtAmount.Text.Trim()); newEntity.Date = Convert.ToDateTime(this.txtDate.Text.Trim()); newEntity.Userid = GlobalObjects.User.ID; newEntity.Notes = this.txtNotes.Text.Trim(); newEntity.Status = 1; newService.Save(ActionType.Create, newEntity, 1); Response.Redirect("ManageExpenses.aspx"); }
private void Create() { newEntity = new WithdrawalEntity(); newEntity.Amount = Convert.ToDecimal(this.txtAmount.Text.Trim()); newEntity.Date = Convert.ToDateTime(this.txtDate.Text.Trim()); newEntity.Userid = Convert.ToInt32(ddlInvestor.SelectedValue); newEntity.Notes = this.txtNotes.Text.Trim(); newEntity.Status = 1; newService.Save(ActionType.Create, newEntity, 0); Response.Redirect("ManageWithdrawals.aspx"); }