public async Task RemoveHometask(IHometask hometask) { var hometaskDelete = await _db.Hometasks.FirstOrDefaultAsync(h => h.Id == hometask.Id); _db.Hometasks.Remove(hometaskDelete); await _db.SaveChangesAsync(); }
public static string Summarize(IHometask hometask) { return(hometask?.ToString() ?? Info.NotFound); }
public static string Summarize(IHometask hometask) { return hometask?.ToString() ?? Info.NotFound; }