public Plan.Delete FromRequest(Request.Delete request) { var workPlan = new Plan.Recode(request.Requester, request.WorkDate.ToShortDateString(), request.WorkTime.ToString()); return(new Plan.Delete(workPlan)); }
protected override void Handle(Request.Delete <TEntity> request, AppDbContext service) { service.Remove(request.Entity); }