Esempio n. 1
0
        //Status = (int)EntityStatus.Visible
        public override IEntity ToModel()//add
        {
            var model = new FeePlan();

            if (this.FeePlan_Count > 0)
            {
                int amount = this.FeePlan_Price / this.FeePlan_Count;
                for (int i = 1; i <= this.FeePlan_Count; i++)
                {
                    model.FeePlan_Details.Add(new FeePlan_Detail
                    {
                        FeePlan_Index  = i,
                        FeePlan_Amount = amount,
                        Status         = (int)EntityStatus.Visible
                    });
                }
            }

            return(ToModel(model));
        }
 public ActionResult EditFeePlan(FeePlan model)
 {
     return(EditModel(model));
 }