Example #1
0
        public bool Delete(PlanTypeDto planTypeDto)
        {
            PlanType planType = new PlanType();

            planType.Id = 1;

            return(planType.Delete());
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="planTypeDto"></param>
        /// <returns></returns>
        public bool Update(PlanTypeDto planTypeDto)
        {
            PlanType planType = new PlanType();

            planType.Id             = 1;
            planType.Name           = "test2";
            planType.LastUpdateTime = DateTime.UtcNow;

            return(planType.Update());
        }
Example #3
0
        public IActionResult Index()
        {
            PlanTypeDto planTypeDto = new PlanTypeDto();

            planTypeDto.Name        = "test1";
            planTypeDto.Level       = 1;
            planTypeDto.Description = "test";

            new PlanTypeApplication().Delete(planTypeDto);

            return(View());
        }
Example #4
0
        public bool Add(PlanTypeDto planTypeDto)
        {
            PlanType planType = new PlanType();

            //planType.Id = planTypeDto.Id;
            planType.Name        = planTypeDto.Name;
            planType.Level       = planTypeDto.Level;
            planType.Description = planTypeDto.Description;
            planType.Remark      = planTypeDto.Remark;
            planType.CreateTime  = System.DateTime.UtcNow;

            return(planType.Add());
        }