public async Task <MeetingPoint> UpdateMeetingPointAsync(MeetingPoint meetingPoint) { context.MeetingPoints.Update(meetingPoint); await context.SaveChangesAsync(); return(meetingPoint); }
public async Task <MeetingPoint> InsertMeetingPointAsync(MeetingPoint meetingPoint) { meetingPoint.Id = 0; var result = await context.MeetingPoints.AddAsync(meetingPoint); await context.SaveChangesAsync(); return(result.Entity); }
public async Task <bool> DeleteMeetingPointAsync(MeetingPoint meetingPoint) { context.MeetingPoints.Remove(meetingPoint); return(await context.SaveChangesAsync() > 0); }