示例#1
0
 public IActionResult CreateChore(ChoreModel model)
 {
     if (model.EndDate != null && model.Name != null)
     {
         choreService.CreateChoreAsync(new ChoreServiceRefence.Chore {
             Description = model.Name, DueDate = model.EndDate
         }, model.HouseId).Wait();
     }
     return(Chore(new HouseModel {
         Id = model.HouseId
     }));
 }