public bool Delete(PlanTypeDto planTypeDto) { PlanType planType = new PlanType(); planType.Id = 1; return(planType.Delete()); }
/// <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()); }
public IActionResult Index() { PlanTypeDto planTypeDto = new PlanTypeDto(); planTypeDto.Name = "test1"; planTypeDto.Level = 1; planTypeDto.Description = "test"; new PlanTypeApplication().Delete(planTypeDto); return(View()); }
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()); }