public async Task <SegmentResponse> ListAllPublic(string email) { var response = new SegmentResponse(); var patterns = await _segmentManager.GetPublicSegmentsAsync(email); response.Valid = true; response.Result = patterns; return(response); }
public async Task <SegmentResponse> Get(int id) { var response = new SegmentResponse(); var pattern = await _segmentManager.GetByIdAsync(id); response.Valid = true; response.Result.Add(pattern); return(response); }
public async Task <SegmentResponse> List(string email, int?id) { var response = new SegmentResponse(); var patterns = await _segmentManager.GetUserSegmentsAsync(email, id ?? 0); response.Valid = true; response.Result = patterns; return(response); }