public void SaveCurfew(Curfew[] values, string login) { var req = new SaveCurfewRequest { Login = login }; req.Values.AddRange(values); client.SaveCurfew(req); }
public override async Task <Google.Protobuf.WellKnownTypes.Empty> SaveCurfew(SaveCurfewRequest request, ServerCallContext context) { await SaveCurfewAsync(request.Values.ToArray(), request.Login); return(new Google.Protobuf.WellKnownTypes.Empty()); }